Skip to content

Commit 42cd5a5

Browse files
committed
Github Actions
1 parent 90e7e18 commit 42cd5a5

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313

14-
- uses: actions/setup-node@v2
14+
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 20
16+
node-version: 22
1717

1818
- name: Get yarn cache directory path
1919
id: yarn-cache-dir-path
2020
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
2121

22-
- uses: actions/cache@v1
22+
- uses: actions/cache@v4
2323
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
2424
with:
2525
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}

.github/workflows/npmpublish.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616

17-
- uses: actions/setup-node@v2
17+
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 18
19+
node-version: 22
2020

2121
- name: Get yarn cache directory path
2222
id: yarn-cache-dir-path
2323
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
2424

25-
- uses: actions/cache@v1
25+
- uses: actions/cache@v4
2626
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
2727
with:
2828
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -45,7 +45,7 @@ jobs:
4545
mv zxing-ngx-scanner-*.tgz ./package.tgz
4646
4747
- name: Upload build artifacts
48-
uses: actions/upload-artifact@v1
48+
uses: actions/upload-artifact@v4
4949
with:
5050
name: pack-artifact
5151
path: ./package.tgz
@@ -56,13 +56,13 @@ jobs:
5656
steps:
5757

5858
- name: Download build artifacts
59-
uses: actions/download-artifact@v1
59+
uses: actions/download-artifact@v4
6060
with:
6161
name: pack-artifact
6262

63-
- uses: actions/setup-node@v2
63+
- uses: actions/setup-node@v4
6464
with:
65-
node-version: 20
65+
node-version: 22
6666
registry-url: https://registry.npmjs.org/
6767

6868
- run: npm publish ./pack-artifact/package.tgz --access public

0 commit comments

Comments
 (0)