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

Commit

Permalink
Combine GoReleaser and NPM Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed May 24, 2020
1 parent aca5ea2 commit 20b6016
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/npm.yml

This file was deleted.

19 changes: 17 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@ jobs:
with:
version: latest
args: release --rm-dist
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
npmPublish:
name: Publish Package to NPM
runs-on: ubuntu-latest
needs:
- goreleaser
steps:
- name: Checkout
uses: actions/checkout@v2
- name: install dependencies
run: npm install
- 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 20b6016

Please sign in to comment.