Skip to content

Commit bb68c08

Browse files
committed
CI: Update Action versions
In order to keep this package releasable, I updated the versions of GitHub Actions.
1 parent 8b5bf58 commit bb68c08

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
build:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/setup-node@v3
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
2222
with:
2323
node-version: 18
2424

2525
- name: Get yarn cache directory path
2626
id: yarn-cache-dir-path
2727
run: echo "::set-output name=dir::$(yarn cache dir)"
2828

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

.github/workflows/npmpublish.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1616
with:
1717
node-version: 18
1818

1919
- name: Get yarn cache directory path
2020
id: yarn-cache-dir-path
2121
run: echo "::set-output name=dir::$(yarn cache dir)"
2222

23-
- uses: actions/cache@v1
23+
- uses: actions/cache@v4
2424
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
2525
with:
2626
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -43,22 +43,27 @@ jobs:
4343
mv zxing-library-*.tgz package.tgz
4444
4545
- name: Upload build artifacts
46-
uses: actions/upload-artifact@v1
46+
uses: actions/upload-artifact@v4
4747
with:
4848
name: pack-artifact
4949
path: ./package.tgz
50+
# If true, an artifact with a matching name will be deleted before a new one is uploaded.
51+
# If false, the action will fail if an artifact for the given name already exists.
52+
# Does not fail if the artifact does not exist.
53+
# Optional. Default is 'false'
54+
overwrite: true
5055

5156
publish-npm:
5257
needs: build
5358
runs-on: ubuntu-latest
5459
steps:
5560

5661
- name: Download build artifacts
57-
uses: actions/download-artifact@v1
62+
uses: actions/download-artifact@v4
5863
with:
5964
name: pack-artifact
6065

61-
- uses: actions/setup-node@v3
66+
- uses: actions/setup-node@v4
6267
with:
6368
node-version: 18
6469
registry-url: https://registry.npmjs.org/

.github/workflows/stale.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/stale@v1
12+
- uses: actions/stale@v9
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
stale-issue-message: 'Stale issue message'
1616
stale-pr-message: 'Stale pull request message'
1717
stale-issue-label: 'no-issue-activity'
1818
stale-pr-label: 'no-pr-activity'
19-
exempt-issue-label: 'no-auto-close'
20-
exempt-pr-label: 'no-auto-close'
19+
exempt-issue-labels: 'no-auto-close'
20+
exempt-pr-labels: 'no-auto-close'

0 commit comments

Comments
 (0)