@@ -2,18 +2,24 @@ name: Common Continuous Integration tasks
22
33on :
44 workflow_call :
5+ outputs :
6+ build-artifact-id :
7+ description : " The artifact ID of the build output"
8+ value : ${{ jobs.nodejs.outputs.build-artifact-id }}
9+ package-tarball-artifact-id :
10+ description : " The artifact ID of the uploaded package tarball"
11+ value : ${{ jobs.package-theme.outputs.package-tarball-artifact-id }}
512
6- permissions :
7- actions : read
8- contents : read
9- security-events : write
10- statuses : write
11- # FIXME: This is a workaround for having workflow ref. See https://github.com/orgs/community/discussions/38659
12- id-token : write
13+ permissions : {}
1314
1415jobs :
1516 linter :
16- uses : hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@5f11437c716059f30c635f90055060e4ef8b31a0 # 0.28.0
17+ uses : hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@5e8d0e6d1e76d8577a070db6d0128a91b1c9d5ad # 0.30.2
18+ permissions :
19+ actions : read
20+ contents : read
21+ security-events : write
22+ statuses : write
1723 with :
1824 linter-env : |
1925 FILTER_REGEX_EXCLUDE=packages/theme/lib/**/*,packages/docs/build/**/*
2329 VALIDATE_CSS=false
2430
2531 nodejs :
26- uses : hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@23af54bc615d657aa9c13c472ae701445c1811a6 # 0.17.1
32+ uses : hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@e96599d869b66887c4c9dc18dd40b59249ad9cd0 # 0.20.2
33+ permissions :
34+ contents : read
35+ id-token : write
36+ packages : read
37+ pull-requests : write
38+ security-events : write
2739 with :
2840 build : |
2941 {
@@ -34,14 +46,22 @@ jobs:
3446 name : Package and verify Docusaurus theme
3547 needs : [linter, nodejs]
3648 runs-on : ubuntu-latest
49+ outputs :
50+ package-tarball-artifact-id : ${{ steps.upload-package-tarball.outputs.artifact-id }}
51+ permissions :
52+ contents : read
3753 steps :
38- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
54+ - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
55+ with :
56+ persist-credentials : false
57+
3958 - name : Setup Node.js
40- uses : hoverkraft-tech/ci-github-nodejs/actions/setup-node@23af54bc615d657aa9c13c472ae701445c1811a6 # 0.17.1
59+ uses : hoverkraft-tech/ci-github-nodejs/actions/setup-node@e96599d869b66887c4c9dc18dd40b59249ad9cd0 # 0.20.2
60+
4161 - name : Download build artifacts
4262 uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
4363 with :
44- name : build
64+ artifact-ids : ${{ needs.nodejs.outputs. build-artifact-id }}
4565 path : /
4666
4767 - name : Create package tarball
6383 npm run build
6484
6585 - name : Upload package tarball
86+ id : upload-package-tarball
6687 uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
6788 with :
6889 name : package-tarball
0 commit comments