Skip to content

Commit

Permalink
fix GA script
Browse files Browse the repository at this point in the history
  • Loading branch information
simke9445 committed Jan 30, 2023
1 parent 25fd63e commit 83c31fb
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Publish Package to npmjs
name: Publish to npm

on:
release:
types: [created]
push:
branches:
- main

jobs:
build:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
Expand All @@ -13,6 +17,6 @@ jobs:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn publish
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 83c31fb

Please sign in to comment.