File tree Expand file tree Collapse file tree 4 files changed +25
-162
lines changed Expand file tree Collapse file tree 4 files changed +25
-162
lines changed Original file line number Diff line number Diff line change 75
75
name : Release Canary
76
76
runs-on : ubuntu-latest
77
77
needs : build
78
+ environment : npm-canary
78
79
steps :
79
80
- name : Checkout Branch
80
81
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -105,10 +106,14 @@ jobs:
105
106
- name : Resolve dependencies for bindings
106
107
run : pnpm install --no-frozen-lockfile
107
108
109
+ # Update npm to the latest version to enable OIDC
110
+ - name : Update npm
111
+ run : |
112
+ npm install -g npm@latest
113
+ npm --version
114
+
108
115
- name : Release
109
116
run : |
110
117
./x version snapshot
111
118
pnpm run build:js:canary
112
119
./x publish snapshot --tag latest
113
- env :
114
- NPM_TOKEN : ${{ secrets.RSPACK_CANARY_RELEASE_TOKEN }}
Original file line number Diff line number Diff line change 30
30
name : Release Debug
31
31
runs-on : ubuntu-latest
32
32
needs : build
33
+ environment : npm-canary
33
34
steps :
34
35
- name : Checkout Branch
35
36
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -60,10 +61,14 @@ jobs:
60
61
- name : Resolve dependencies for bindings
61
62
run : pnpm install --no-frozen-lockfile
62
63
64
+ # Update npm to the latest version to enable OIDC
65
+ - name : Update npm
66
+ run : |
67
+ npm install -g npm@latest
68
+ npm --version
69
+
63
70
- name : Release Debug
64
71
run : |
65
72
pnpm run build:js
66
73
./x version debug
67
74
./x publish stable --tag latest
68
- env :
69
- NPM_TOKEN : ${{ secrets.RSPACK_CANARY_RELEASE_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 14
14
- latest
15
15
- beta
16
16
- alpha
17
+ - rc
17
18
test :
18
19
type : boolean
19
20
description : " Run tests before release"
78
79
79
80
release :
80
81
name : Release
82
+ environment : npm
81
83
permissions :
82
84
contents : write
83
85
# To publish packages with provenance
@@ -103,6 +105,9 @@ jobs:
103
105
with :
104
106
path : artifacts
105
107
108
+ - name : Clean artifacts
109
+ run : find artifacts -type f -name '*.d.ts' | xargs rm -f
110
+
106
111
- name : Build node packages
107
112
run : pnpm run build:js
108
113
@@ -115,11 +120,16 @@ jobs:
115
120
- name : Link optional dependencies
116
121
run : pnpm install --no-frozen-lockfile
117
122
123
+ # Update npm to the latest version to enable OIDC
124
+ - name : Update npm
125
+ run : |
126
+ npm install -g npm@latest
127
+ npm --version
128
+
118
129
- name : Release Full
119
130
run : |
120
131
./x publish stable --tag ${{inputs.tag}} ${{inputs.dry_run && '--dry-run' || '--no-dry-run'}} ${{inputs.push_tags && '--push-tags' || '--no-push-tags'}}
121
132
env :
122
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
123
133
REPOSITORY : ${{ github.repository }}
124
134
REF : ${{ github.ref }}
125
135
ONLY_RELEASE_TAG : true
You can’t perform that action at this time.
0 commit comments