Skip to content

Commit bb6707d

Browse files
chore: upgrade github action versions
1 parent e3924f0 commit bb6707d

File tree

3 files changed

+109
-109
lines changed

3 files changed

+109
-109
lines changed

.github/workflows/lint.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
name: test
2-
on:
3-
push:
4-
pull_request:
5-
6-
jobs:
7-
lint:
8-
name: Lint
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Checkout Repo
12-
uses: actions/checkout@v3
13-
- uses: denoland/setup-deno@v1
14-
with:
15-
deno-version: 1.x
16-
- name: Lint Package with Biome
17-
run: deno task lint
1+
name: test
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
lint:
8+
name: Lint
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repo
12+
uses: actions/checkout@v4
13+
- uses: denoland/setup-deno@v1
14+
with:
15+
deno-version: 1.x
16+
- name: Lint Package with Biome
17+
run: deno task lint

.github/workflows/release.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
name: Release
2-
3-
on:
4-
push:
5-
tags:
6-
- "*"
7-
workflow_dispatch:
8-
9-
concurrency: ${{ github.workflow }}-${{ github.ref }}
10-
11-
jobs:
12-
release:
13-
name: Release
14-
runs-on: ubuntu-latest
15-
permissions:
16-
id-token: write
17-
steps:
18-
- name: Checkout Repo
19-
uses: actions/checkout@v3
20-
- uses: denoland/setup-deno@v1
21-
with:
22-
deno-version: "1.x"
23-
- name: Get tag version
24-
if: startsWith(github.ref, 'refs/tags/')
25-
id: get_tag_version
26-
run: echo TAG_VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT
27-
- uses: actions/setup-node@v3
28-
with:
29-
node-version: "20"
30-
registry-url: 'https://registry.npmjs.org'
31-
- uses: pnpm/action-setup@v2
32-
with:
33-
version: latest
34-
- name: npm build
35-
run: deno task npm ${{steps.get_tag_version.outputs.TAG_VERSION}}
36-
- name: npm publish
37-
if: startsWith(github.ref, 'refs/tags/')
38-
env:
39-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40-
run: cd npm && npm publish --provenance
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
workflow_dispatch:
8+
9+
concurrency: ${{ github.workflow }}-${{ github.ref }}
10+
11+
jobs:
12+
release:
13+
name: Release
14+
runs-on: ubuntu-latest
15+
permissions:
16+
id-token: write
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@v4
20+
- uses: denoland/setup-deno@v1
21+
with:
22+
deno-version: "1.x"
23+
- name: Get tag version
24+
if: startsWith(github.ref, 'refs/tags/')
25+
id: get_tag_version
26+
run: echo TAG_VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: "20"
30+
registry-url: "https://registry.npmjs.org"
31+
- uses: pnpm/action-setup@v4
32+
with:
33+
version: latest
34+
- name: npm build
35+
run: deno task npm ${{steps.get_tag_version.outputs.TAG_VERSION}}
36+
- name: npm publish
37+
if: startsWith(github.ref, 'refs/tags/')
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
run: cd npm && npm publish --provenance

.github/workflows/test.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
1-
name: test
2-
on:
3-
push:
4-
pull_request:
5-
6-
jobs:
7-
test-deno:
8-
runs-on: ubuntu-latest
9-
strategy:
10-
matrix:
11-
deno: ["1.x"]
12-
name: Test Deno on Version ${{ matrix.deno }}
13-
steps:
14-
- name: Checkout Repo
15-
uses: actions/checkout@v3
16-
- uses: denoland/setup-deno@v1
17-
with:
18-
deno-version: ${{ matrix.deno }}
19-
- name: Run tests in Deno
20-
run: deno test -A
21-
test-node:
22-
runs-on: ubuntu-latest
23-
strategy:
24-
matrix:
25-
deno: ["1.x"]
26-
node: ["20", "21"]
27-
name: Test Node on Version ${{ matrix.node }}
28-
steps:
29-
- name: Checkout Repo
30-
uses: actions/checkout@v3
31-
- uses: denoland/setup-deno@v1
32-
with:
33-
deno-version: ${{ matrix.deno }}
34-
- uses: actions/setup-node@v3
35-
with:
36-
node-version: ${{ matrix.node }}
37-
- uses: pnpm/action-setup@v2
38-
with:
39-
version: latest
40-
- name: Get pnpm store directory
41-
shell: bash
42-
run: |
43-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
44-
- uses: actions/cache@v3
45-
name: Setup pnpm cache
46-
with:
47-
path: ${{ env.STORE_PATH }}
48-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49-
restore-keys: |
50-
${{ runner.os }}-pnpm-store-
51-
- name: Build and test node
52-
run: deno task npm 0.0.0
1+
name: test
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
test-deno:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
deno: ["1.x"]
12+
name: Test Deno on Version ${{ matrix.deno }}
13+
steps:
14+
- name: Checkout Repo
15+
uses: actions/checkout@v4
16+
- uses: denoland/setup-deno@v1
17+
with:
18+
deno-version: ${{ matrix.deno }}
19+
- name: Run tests in Deno
20+
run: deno test -A
21+
test-node:
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
deno: ["1.x"]
26+
node: ["20", "21"]
27+
name: Test Node on Version ${{ matrix.node }}
28+
steps:
29+
- name: Checkout Repo
30+
uses: actions/checkout@v4
31+
- uses: denoland/setup-deno@v1
32+
with:
33+
deno-version: ${{ matrix.deno }}
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: ${{ matrix.node }}
37+
- uses: pnpm/action-setup@v4
38+
with:
39+
version: latest
40+
- name: Get pnpm store directory
41+
shell: bash
42+
run: |
43+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
44+
- uses: actions/cache@v4
45+
name: Setup pnpm cache
46+
with:
47+
path: ${{ env.STORE_PATH }}
48+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
49+
restore-keys: |
50+
${{ runner.os }}-pnpm-store-
51+
- name: Build and test node
52+
run: deno task npm 0.0.0

0 commit comments

Comments
 (0)