Skip to content

Commit 8475da1

Browse files
committed
chore: adjust workflows and upgrade their dependencies
1 parent 148c5c9 commit 8475da1

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,33 @@ jobs:
1111
runs-on: ubuntu-latest
1212
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
ref: ${{ github.event.workflow_run.head_branch }}
18-
- uses: actions/setup-node@v3
18+
- uses: actions/setup-node@v4
1919
with:
2020
node-version: 18
2121
cache: 'npm'
2222
registry-url: https://registry.npmjs.org/
2323
- run: npm ci
2424
- run: git config user.name "cerebral[bot]"
2525
- run: git config user.email "136202705+cerebral[bot]@users.noreply.github.com"
26-
- name: Generate token
27-
id: generate_token
28-
uses: tibdex/github-app-token@v1
26+
- name: Create token
27+
id: create_token
28+
uses: tibdex/github-app-token@v2
2929
with:
3030
app_id: ${{ secrets.APP_ID }}
3131
private_key: ${{ secrets.PRIVATE_KEY }}
32-
repository: cerebral/repo-cooker
3332
- name: Release packages
3433
run: npm run release -- --no-parallel --print-release
3534
if: github.event_name != 'pull_request'
3635
env:
37-
REPO_COOKER_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
36+
REPO_COOKER_GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}
3837
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3938
- name: Publish vscode extension to Visual Studio Marketplace
4039
if: github.event_name != 'pull_request' && github.event.workflow_run.head_branch == 'master'
41-
uses: HaaLeo/publish-vscode-extension@v1
40+
uses: HaaLeo/publish-vscode-extension@v2
4241
with:
4342
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
4443
registryUrl: https://marketplace.visualstudio.com

.github/workflows/test.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
jobs:
88
test:
9+
name: Test
910
runs-on: ubuntu-latest
1011

1112
env:
@@ -16,13 +17,13 @@ jobs:
1617
node-version: [16.x, 18.x, 20.x]
1718

1819
steps:
19-
- uses: actions/checkout@v3
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
cache: 'npm'
25-
- run: npm ci
26-
- run: npm run lint
27-
- run: npm run checkdeps
28-
- run: npm test
20+
- uses: actions/checkout@v4
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
26+
- run: npm ci
27+
- run: npm run lint
28+
- run: npm run checkdeps
29+
- run: npm test

0 commit comments

Comments
 (0)