diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58177cf..30bad0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,9 @@ name: CI -on: [push] +on: + pull_request: + push: + branches: [ 'master' ] env: CI: true @@ -10,13 +13,13 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - channel: [stable, beta] + node-version: [20.x, '${{ vars.NODE_VERSION }}' ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 with: - node-version: '14' + node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm install - name: Run tests diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..833cf57 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: Publish + +on: + release: + types: [created] + workflow_dispatch: + +env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 + with: + node-version: ${{ vars.NODE_VERSION }} + registry-url: https://registry.npmjs.org + - name: Install Dependencies + run: npm ci + - name: Test + run: npm run test + - name: Publish + run: npm publish --access public diff --git a/README.md b/README.md index ed3aa38..326299b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ # Grim -[![CI](https://github.com/atom/grim/actions/workflows/ci.yml/badge.svg)](https://github.com/atom/grim/actions/workflows/ci.yml) Log deprecate calls diff --git a/package.json b/package.json index c404367..1f4bff5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "grim", + "name": "@pulsar-edit/grim", "version": "2.0.3", "description": "Log usage of deprecated methods", "main": "./lib/grim", @@ -9,17 +9,12 @@ }, "repository": { "type": "git", - "url": "https://github.com/atom/grim.git" + "url": "https://github.com/pulsar-edit/grim.git" }, "bugs": { - "url": "https://github.com/atom/grim/issues" + "url": "https://github.com/pulsar-edit/grim/issues" }, - "licenses": [ - { - "type": "MIT", - "url": "http://github.com/atom/grim/raw/master/LICENSE.md" - } - ], + "license": "MIT", "dependencies": { "event-kit": "^2.0.0" },