Skip to content

Commit b6dc0d2

Browse files
fix(ci): update release pipeline
1 parent 0066fba commit b6dc0d2

File tree

4 files changed

+47
-35
lines changed

4 files changed

+47
-35
lines changed

.github/dependabot.yml

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,35 @@
11
version: 2
22
updates:
3-
- package-ecosystem: npm
4-
directory: '/'
5-
schedule:
6-
interval: weekly
7-
open-pull-requests-limit: 10
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
time: "11:00"
8+
open-pull-requests-limit: 10
9+
versioning-strategy: increase-if-necessary
10+
groups:
11+
patch-deps-updates:
12+
update-types:
13+
- "patch"
14+
minor-deps-updates:
15+
update-types:
16+
- "minor"
17+
major-deps-updates:
18+
update-types:
19+
- "major"
20+
- package-ecosystem: github-actions
21+
directory: "/"
22+
schedule:
23+
interval: weekly
24+
time: "11:00"
25+
open-pull-requests-limit: 10
26+
groups:
27+
patch-deps-updates:
28+
update-types:
29+
- "patch"
30+
minor-deps-updates:
31+
update-types:
32+
- "minor"
33+
major-deps-updates:
34+
update-types:
35+
- "major"

.github/workflows/ci.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,22 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
node-version: [20.x]
17-
1814
steps:
19-
- uses: actions/checkout@v3
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3
15+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
16+
- name: Use Node.js
17+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
2218
with:
23-
node-version: ${{ matrix.node-version }}
19+
node-version-file: .nvmrc
2420
- name: Cache pnpm modules
25-
uses: actions/cache@v3
21+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
2622
env:
2723
cache-name: cache-pnpm-modules
2824
with:
2925
path: ~/.pnpm-store
3026
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
3127
restore-keys: |
3228
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
33-
- uses: pnpm/action-setup@v2
29+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
3430
with:
3531
version: 8.8.0
3632
run_install: false
@@ -40,8 +36,3 @@ jobs:
4036
run: pnpm -r --workspace-concurrency=1 build
4137
- name: 🧪 Run Tests
4238
run: pnpm test
43-
- name: 🐛 Debug Build
44-
uses: stateful/vscode-server-action@v1
45-
if: failure()
46-
with:
47-
timeout: '120000'

.github/workflows/release.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,24 @@ on:
1919

2020
env:
2121
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
NPM_CONFIG_PROVENANCE: true
2223

2324
jobs:
2425
release:
2526
runs-on: ubuntu-latest
2627
steps:
27-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2829
with:
2930
ref: 'main'
3031
fetch-depth: 0
31-
# - run: |
32-
# echo "Not yet ready!"
33-
# exit 1
34-
- uses: actions/setup-node@v3
32+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
3533
with:
36-
node-version: 20.x
37-
- uses: pnpm/action-setup@v2
34+
node-version-file: .nvmrc
35+
registry-url: "https://registry.npmjs.org"
36+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
3837
with:
3938
version: 8.8.0
4039
run_install: true
41-
- name: NPM Setup
42-
run: |
43-
pnpm set registry "https://registry.npmjs.org/"
44-
pnpm set //registry.npmjs.org/:_authToken $NPM_TOKEN
45-
pnpm whoami
4640
- name: Git Setup
4741
run: |
4842
git config --global user.email "[email protected]"
@@ -58,5 +52,4 @@ jobs:
5852
- name: Release
5953
run: pnpm -r publish --access public --no-git-checks
6054
env:
61-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6255
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
steps:
2020
- name: Fetch PR metadata
2121
id: metadata
22-
uses: dependabot/fetch-metadata@v1.6.0
22+
uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2.4.0
2323
with:
2424
github-token: ${{ secrets.GITHUB_TOKEN }}
2525

2626
- name: Wait for PR CI
2727
# Don't merge updates to GitHub Actions versions automatically.
2828
# (Some repos may wish to limit by version range (major/minor/patch), or scope (dep vs dev-dep), too.)
2929
if: contains(steps.metadata.outputs.package-ecosystem, 'npm')
30-
uses: lewagon/wait-on-check-action@v1.3.1
30+
uses: lewagon/wait-on-check-action@3603e826ee561ea102b58accb5ea55a1a7482343 # v1.4.1
3131
with:
3232
ref: ${{ github.event.pull_request.head.sha }}
3333
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)