Skip to content

Commit

Permalink
Merge pull request #5 from Zapper-fi/github_pacakges
Browse files Browse the repository at this point in the history
Publish the package to github as well
  • Loading branch information
Emile-Filteau authored Aug 8, 2022
2 parents b8de40f + 63794b3 commit 659c014
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
release-please:
name: Release
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: google-github-actions/release-please-action@v3
Expand Down Expand Up @@ -52,6 +55,15 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}

- name: Publish to Github packages
run: |
echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" > .npmrc
npm config set registry https://npm.pkg.github.com
npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.release.outputs.release_created }}

- name: Fetch Release
id: fetch-latest-release
uses: gregziegan/[email protected]
Expand Down

0 comments on commit 659c014

Please sign in to comment.