File tree 2 files changed +13
-11
lines changed
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- stable
7
7
8
+ permissions :
9
+ contents : write
10
+ id-token : write
11
+ packages : write
12
+
8
13
jobs :
9
14
build :
10
15
name : Build, Test, and Deploy
11
16
runs-on : ubuntu-latest
12
17
timeout-minutes : 30
13
18
steps :
14
- - run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
15
- - uses : actions/setup-node@v3
16
- with :
17
- node-version : 16.x
18
19
- uses : actions/checkout@v3
19
20
with :
20
21
fetch-depth : 0
21
- - name : Restore Dependency Cache
22
- uses : actions/cache@v3
22
+ - uses : actions/setup-node@v3
23
23
with :
24
- path : ~/.npm
25
- key : ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }}
24
+ node-version : 16
25
+ registry-url : https://registry.npmjs.org/
26
+ cache : npm
27
+ cache-dependency-path : ' **/package.json'
26
28
- run : npm install
27
29
- run : npm run bootstrap
28
- - run : npm run publish:ci -- --yes
30
+ - run : npm run publish:ci
29
31
env :
30
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
31
32
GIT_AUTHOR_NAME : Ionitron
32
33
GIT_AUTHOR_EMAIL :
[email protected]
33
34
GIT_COMMITTER_NAME : Ionitron
34
35
GIT_COMMITTER_EMAIL :
[email protected]
36
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
35
37
- name : Sleep while npm takes its time
36
38
run : sleep 20
37
39
- name : GitHub Container Registry Login
Original file line number Diff line number Diff line change 14
14
"docs" : " node packages/cli-scripts/bin/ionic-cli-scripts docs" ,
15
15
"docs:watch" : " chokidar 'packages/cli-scripts/dist/docs/**/*.js' -c 'npm run docs'" ,
16
16
"publish:testing" : " lerna publish prerelease --preid=testing --exact --no-git-tag-version --no-push --dist-tag=testing" ,
17
- "publish:ci" : " lerna publish -m 'chore(release): publish [skip ci]' --exact --conventional-commits --no-verify-access "
17
+ "publish:ci" : " lerna version -m 'chore(release): publish [skip ci]' --exact --conventional-commits --yes && lerna exec --since HEAD~ -- npm publish --provenance "
18
18
},
19
19
"devDependencies" : {
20
20
"chokidar-cli" : " ^2.0.0" ,
You can’t perform that action at this time.
0 commit comments