Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
Publish new Releases to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Apr 12, 2020
1 parent 683b4ce commit 544fe49
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,20 @@ jobs:
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
npmPublish:
needs: goreleaser
name: Publish Package to NPM
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check package version
uses: technote-space/package-version-check-action@v1
with:
COMMIT_MESSAGE: "Update npm package version [skip-ci]"
- name: Publish
run: |
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
npm publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 544fe49

Please sign in to comment.