-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (46 loc) · 1.32 KB
/
publish-canary.yaml
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
name: Publish canary packages
on:
workflow_dispatch:
inputs:
commit:
required: true
type: string
description: 'Commit SHA'
packages:
required: true
type: string
description: "Space-separated list of packages to publish"
strict:
required: true
type: boolean
description: "Strict Mode (only bump explicitly given packages)"
permissions:
# To publish packages with provenance
contents: write
id-token: write
jobs:
release:
name: Release and Publish
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup Build Env
uses: ./.github/actions/setup-build-env
with:
native: false
ref: ${{ inputs.commit }}
target: wasm
- name: Set canary versions
run: |
pnpm intl-cli ecosystem version bump canary
- name: Publish all @discord/intl-message-database* packages
run: |
pnpm intl-cli ecosystem publish-only ${{inputs.packages}} \
--tag canary ${{inputs.strict && '--strict' || ''}} \
--yes --skip-existing --no-git-checks \
--provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}