Skip to content

Commit

Permalink
ci: add npm release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Jun 14, 2023
1 parent 5136e9b commit e76637d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/npm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Package to npmjs
on:
release:
types: [published]

jobs:
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Yarn Install
run: yarn install --frozen-lockfile

- name: Yarn Build
run: yarn run build

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit e76637d

Please sign in to comment.