Skip to content

Commit

Permalink
Publish to GitHub packages until all repos are public.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdupre committed Jun 21, 2022
1 parent f7e8f1b commit c766823
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: Publish package to npmjs
name: Publish package to GitHub Packages

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- run: npm publish --access public
registry-url: 'https://npm.pkg.github.com'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c766823

Please sign in to comment.