-
Notifications
You must be signed in to change notification settings - Fork 190
Expand file tree
/
Copy pathpublish-canary-releases.yml
More file actions
46 lines (38 loc) · 1.06 KB
/
publish-canary-releases.yml
File metadata and controls
46 lines (38 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Publish Canary Releases
on:
workflow_dispatch:
branches:
- main
push:
branches:
- main
env:
# See https://consoledonottrack.com/
DO_NOT_TRACK: '1'
jobs:
build-and-publish-snapshots-to-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
uses: ./.github/workflows/actions/install-dependencies
- name: Run Test & Lint
run: pnpm test
- name: Run Build Step
run: pnpm build
- name: Configure NPM token
run: |
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish Canary Release
run: |
pnpm pkg delete devDependencies
pnpm changeset version --snapshot canary
pnpm publish-packages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PUBLISH_TAG: canary