Commit 5f48c73 1 parent be0990f commit 5f48c73 Copy full SHA for 5f48c73
File tree 4 files changed +241
-68
lines changed
4 files changed +241
-68
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
6
6
jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v4
11
+ with :
12
+ persist-credentials : false
13
+ - uses : actions/setup-node@v4
14
+ with :
15
+ node-version : 22
16
+ cache : ' npm'
17
+ - run : npm ci
18
+ - run : npm test
19
+ env :
20
+ FORCE_COLOR : 3
21
+ - run : node scripts/clean-package-json.mjs
22
+ - uses : actions/upload-artifact@v4
23
+ with :
24
+ name : build-${{ github.run_id }}
25
+ path : |
26
+ build
27
+ package.json
28
+ retention-days : 1
29
+
7
30
publish :
31
+ needs : build
8
32
runs-on : ubuntu-latest
9
33
permissions :
10
34
checks : read
@@ -20,14 +44,12 @@ jobs:
20
44
with :
21
45
node-version : 22
22
46
cache : ' npm'
23
- - run : npm ci
24
- - run : npm test
25
- env :
26
- FORCE_COLOR : 3
47
+ - uses : actions/download-artifact@v4
48
+ with :
49
+ name : build-${{ github.run_id }}
27
50
- run : echo "//wombat-dressing-room.appspot.com/:_authToken=$AUTH_TOKEN" >> .npmrc
28
51
env :
29
52
AUTH_TOKEN : ${{ secrets.AUTH_TOKEN }}
30
53
- run : |
31
54
npm version $(node --eval="process.stdout.write(require('./package.json').version)")-dev.$(git rev-parse --short HEAD) --no-git-tag-version
32
- node scripts/clean-package-json.mjs
33
55
npm publish --provenance --access=public --no-git-tag-version --tag dev
Original file line number Diff line number Diff line change 6
6
types : [created]
7
7
8
8
jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ with :
14
+ persist-credentials : false
15
+ - uses : actions/setup-node@v4
16
+ with :
17
+ node-version : 22
18
+ cache : ' npm'
19
+ - run : npm ci
20
+ - run : npm test
21
+ env :
22
+ FORCE_COLOR : 3
23
+ - run : node scripts/clean-package-json.mjs
24
+ - uses : actions/upload-artifact@v4
25
+ with :
26
+ name : build-${{ github.run_id }}
27
+ path : |
28
+ build
29
+ package.json
30
+ retention-days : 1
31
+
9
32
publish :
33
+ needs : build
10
34
runs-on : ubuntu-latest
11
35
permissions :
12
36
checks : read
22
46
with :
23
47
node-version : 22
24
48
cache : ' npm'
25
- - run : npm ci
26
- - run : npm test
27
- env :
28
- FORCE_COLOR : 3
29
- - run : node scripts/clean-package-json.mjs
49
+ - uses : actions/download-artifact@v4
50
+ with :
51
+ name : build-${{ github.run_id }}
30
52
- run : echo "//wombat-dressing-room.appspot.com/:_authToken=$AUTH_TOKEN" >> .npmrc
31
53
env :
32
54
AUTH_TOKEN : ${{ secrets.AUTH_TOKEN }}
You can’t perform that action at this time.
0 commit comments