Skip to content

Commit

Permalink
Merge pull request #3 from hypothesis/publish-workflow
Browse files Browse the repository at this point in the history
Add "Publish package" GitHub Actions workflow
  • Loading branch information
robertknight authored Oct 20, 2021
2 parents b72da64 + 1c9e5fe commit 4574540
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish package
on:
release:
types:
- published
jobs:
build-and-publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Nodejs
uses: actions/setup-node@v1
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- name: Install
run: yarn install --frozen-lockfile
- name: Build lib files
run: yarn build
- name: Publish package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4574540

Please sign in to comment.