Skip to content

Commit

Permalink
Add GHA to publish on release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
makrsmark committed Mar 22, 2024
1 parent 96f41b1 commit 73eb75d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
scope: '@airframes'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/yarn-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install
- run: yarn install --frozen-lockfile
- run: yarn test

0 comments on commit 73eb75d

Please sign in to comment.