Skip to content

Commit 05f0c73

Browse files
committed
fix: upgrade github actions
1 parent 2a035f6 commit 05f0c73

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
1212
runs-on: Ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1616
with:
17-
registry-url: "https://registry.npmjs.org"
17+
registry-url: 'https://registry.npmjs.org'
1818
- run: git switch master
1919
- run: |
2020
if [ -f "yarn.lock" ]; then
@@ -26,4 +26,4 @@ jobs:
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
2828
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
29-
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}
29+
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010

1111
jobs:
1212
test:
13-
name: "Test on Node.js ${{ matrix.node }} OS: ${{matrix.os}}"
13+
name: 'Test on Node.js ${{ matrix.node }} OS: ${{matrix.os}}'
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
@@ -20,15 +20,15 @@ jobs:
2020
node: [12, 14]
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2424
- name: Setup Node.js ${{ matrix.node }}
25-
uses: actions/setup-node@v2
25+
uses: actions/setup-node@v4
2626
with:
2727
node-version: ${{ matrix.node }}
2828
- name: Get yarn cache directory path
2929
id: yarn-cache-dir-path
30-
run: echo "::set-output name=dir::$(yarn cache dir)"
31-
- uses: actions/cache@v2
30+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
31+
- uses: actions/cache@v4
3232
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
3333
with:
3434
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}

0 commit comments

Comments
 (0)