Skip to content

Commit

Permalink
Add publish pipeline (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
inverse authored Sep 19, 2023
1 parent 3d22dec commit c7b16e9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish
on:
release:
types: [published]

jobs:
publish:
name: Publish NPM package
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

- name: Publish package
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN_ORG }}

0 comments on commit c7b16e9

Please sign in to comment.