Skip to content

Commit

Permalink
CI: add canary-release workflow (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
azu authored Feb 2, 2024
1 parent f05868e commit 0d07d6c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'canary-release'
on:
workflow_dispatch:

permissions:
contents: read # for checkout

jobs:
canary-release:
name: canary-release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup Node.js
uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: 18
# for publishing packages to npm
registry-url: https://registry.npmjs.org
- name: install
run: npm ci
- name: Publish
run: npm exec lerna publish --canary --preid next --dist-tag next --force-publish='*' --no-push --no-git-tag-version --yes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 0d07d6c

Please sign in to comment.