-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (46 loc) · 1.36 KB
/
release.yml
File metadata and controls
54 lines (46 loc) · 1.36 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
name: Release CI
on:
release:
types: published
push:
branches:
- "main"
concurrency:
group: npm-publish-types
cancel-in-progress: false
env:
node-version: 24.x
# Serialized publishing (batch=1) avoids E429 from concurrent provenance signing
NPM_BATCH_SIZE: 1
NPM_BATCH_DELAY_MS: 5000
NPM_PUBLISH_DELAY_MS: 1000
NPM_STATUS_CONCURRENCY: 20
NPM_MAX_RETRIES: 10
NPM_STATUS_MAX_RETRIES: 5
NPM_RETRY_BASE_MS: 5000
NPM_RETRY_MAX_MS: 300000
NPM_TIMEOUT_SEC: 600
jobs:
release:
name: Release CI
runs-on: ubuntu-24.04
timeout-minutes: 360
environment: npm-release
permissions:
contents: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Use Node.js ${{ env.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ env.node-version }}
- name: Configure npm authentication
run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Publish
run: node --experimental-specifier-resolution=node --experimental-strip-types --experimental-transform-types --no-warnings ./.github/release-script/src/index.ts --continue-on-error
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}