Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ jobs:
runs-on: ubuntu-22.04
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_BOT_TOKEN }}

- name: Setup Node.js
- name: Setup Node.js with NPM Registry
uses: actions/setup-node@v4
with:
node-version: '20.x'
Expand Down Expand Up @@ -59,3 +60,20 @@ jobs:
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Setup Node.js with GitHub Registry
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@${{ github.repository_owner }}'

- name: Publish to GitHub Packages
run: |
if [ "${{ github.ref_name }}" == "main" ]; then
yarn lerna publish from-package --yes --no-private --loglevel silly --preid beta --dist-tag beta
else
yarn lerna publish from-package --yes --no-private --loglevel silly
fi
env:
NODE_AUTH_TOKEN: ${{ github.token }}
Loading