Skip to content

Commit

Permalink
separate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
CrisTofani committed Jul 20, 2023
1 parent 3baed89 commit 7a64eaf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish the package to Github Package Registry
on:
release:
types: [created]
permissions:
packages: write
jobs:
github-package:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2
- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c #v3.6
with:
node-version: 18.x
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies and build with builder bob
run: yarn install --frozen-lockfile
- name: Publish Package
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 2 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish the package
name: Publish the package npm registry
on:
release:
types: [created]
Expand All @@ -19,20 +19,4 @@ jobs:
- name: Publish package on NPM 📦
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}
github-package:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #v3.5.2
- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c #v3.6
with:
node-version: 18.x
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies and build with builder bob
run: yarn install --frozen-lockfile
- name: Publish Package
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}

0 comments on commit 7a64eaf

Please sign in to comment.