-
-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (60 loc) · 2.21 KB
/
Copy pathpublish.yml
File metadata and controls
71 lines (60 loc) · 2.21 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Publish
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions: {}
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # commit the version bump, push the release tag
pull-requests: write # open the "Version Packages" PR
id-token: write # npm publish via OIDC trusted publishing
steps:
- name: generate bot token
id: bot-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- name: checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: true
fetch-depth: 0
persist-credentials: true
token: ${{ steps.bot-token.outputs.token }}
- name: setup git user
run: |
git config --global user.name "bombshell-bot[bot]"
git config --global user.email "187071675+bombshell-bot[bot]@users.noreply.github.com"
- name: setup deno
uses: denoland/setup-deno@22d081ff2d3a40755e97629de92e3bcbfa7cf2ed # v2.0.5
with:
# Pinned to v2.8.3 to avoid https://github.com/denoland/deno/issues/35529
# (v2.9.0 rejects JSR files without a manifest checksum on warm cache).
# Restore to v2.x once v2.9.1 ships.
deno-version: v2.8.3
- name: setup node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
registry-url: "https://registry.npmjs.org"
- name: build wasm
run: make
- name: install changesets
run: npm ci
- name: changesets
uses: changesets/action@8488615a623b1b9c987934bb89eae8af6a946ac1 # v2.1.1
with:
version-script: npm run version
publish-script: npm run release
commit-message: "chore: version packages"
pr-title: "chore: version packages"
create-github-releases: false
push-with-git-cli: true
github-token: ${{ steps.bot-token.outputs.token }}