Skip to content

Commit d3f2cef

Browse files
committed
workflow adjustments
1 parent ca4e11f commit d3f2cef

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

.github/workflows/publish.yml

+34-3
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,42 @@ jobs:
2121
id-token: write
2222
contents: read
2323
steps:
24-
- uses: actions/checkout@v4
25-
- uses: actions/setup-node@v4
24+
- name: Begin CI...
25+
uses: actions/checkout@v4
26+
27+
- name: Use Node 20
28+
uses: actions/setup-node@v4
2629
with:
27-
node-version: "20.x"
30+
node-version: 20.x
2831
registry-url: "https://registry.npmjs.org"
32+
33+
- name: Use cached node_modules
34+
uses: actions/cache@v4
35+
with:
36+
path: node_modules
37+
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
38+
restore-keys: |
39+
nodeModules-
40+
41+
- name: Install dependencies
42+
run: yarn install --frozen-lockfile
43+
env:
44+
CI: true
45+
46+
- name: Lint
47+
run: yarn lint
48+
env:
49+
CI: true
50+
51+
- name: Test
52+
run: yarn test
53+
env:
54+
CI: true
55+
56+
- name: Build
57+
run: yarn build
58+
env:
59+
CI: true
2960
- run: npm pkg set "version=${{ inputs.version }}"
3061
- run: npm publish --provenance --tag ${{ inputs.tag }} --access public
3162
env:

0 commit comments

Comments
 (0)