-
Notifications
You must be signed in to change notification settings - Fork 56
63 lines (54 loc) · 1.62 KB
/
publish-canary.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Publish & deploy canary version
on:
push:
branches:
- main
paths-ignore:
- "*.md"
- "templates/**"
- "scripts/**"
- ".vscode/**"
- "apps/**"
jobs:
publish:
name: Publish canary version
if: "!contains(github.event.commits[0].message, 'chore: next version release')"
runs-on: macos-14
permissions:
id-token: write
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- run: corepack enable
- run: pnpm --version
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- name: install
run: pnpm install --frozen-lockfile --prefer-offline
- name: Build packages
run: pnpm run build --filter='./packages/*'
- name: Generate shapshot
run: |
pnpm up -r --workspace templates
pnpm run version --snapshot canary
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}
- name: Set publishing config
run: npm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish canary packages
run: pnpm changeset publish --no-git-tag --no-git-checks --tag canary
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true