Skip to content

Commit 4397051

Browse files
authored
Merge pull request #1 from webdeveric/dev/release
Automated release
2 parents 1ba38a5 + d1e8f77 commit 4397051

File tree

7 files changed

+1658
-28
lines changed

7 files changed

+1658
-28
lines changed

.github/workflows/node.js.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,27 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
16+
1617
- name: Setup pnpm
1718
uses: pnpm/action-setup@v4
19+
1820
- name: Use Node.js
1921
uses: actions/setup-node@v4
2022
with:
2123
node-version-file: '.nvmrc'
2224
cache: 'pnpm'
25+
2326
- name: Installing dependencies
2427
run: pnpm install
28+
2529
- name: Linting
2630
run: pnpm lint
31+
2732
- name: Type checking
2833
run: pnpm typecheck
34+
2935
- name: Testing
3036
run: pnpm coverage
37+
3138
- name: Building
3239
run: pnpm build

.github/workflows/release.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Release
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types:
8+
- closed
9+
10+
permissions:
11+
contents: read # for checkout
12+
13+
jobs:
14+
release:
15+
name: Release
16+
if: github.event.pull_request.merged == true
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write # to be able to publish a GitHub release
20+
issues: write # to be able to comment on released issues
21+
pull-requests: write # to be able to comment on released pull requests
22+
id-token: write # to enable use of OIDC for npm provenance
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- name: Setup pnpm
30+
uses: pnpm/action-setup@v4
31+
32+
- name: Use Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version-file: '.nvmrc'
36+
cache: 'pnpm'
37+
38+
- name: Installing dependencies
39+
run: pnpm install
40+
41+
- name: Building
42+
run: pnpm build
43+
44+
# https://github.com/pnpm/pnpm/issues/7909
45+
# - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
46+
# run: npm audit signatures
47+
48+
- name: Release
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52+
NPM_CONFIG_PROVENANCE: true
53+
run: npx --no semantic-release

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"commitlint",
77
"commitlintplugin",
88
"nvmrc",
9+
"OIDC",
910
"postbuild",
1011
"tsbuildinfo",
1112
"typecheck",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@
5050
"prettier": "@webdeveric/prettier-config",
5151
"dependencies": {
5252
"@commitlint/types": "^19.0.3",
53-
"@webdeveric/utils": "^0.32.0",
5453
"cspell-lib": "^8.12.1"
5554
},
5655
"devDependencies": {
57-
"@types/node": "^20.14.12",
56+
"@types/node": "^22.0.0",
5857
"@vitest/coverage-v8": "^2.0.4",
5958
"@webdeveric/eslint-config-ts": "^0.8.0",
6059
"@webdeveric/prettier-config": "^0.3.0",
@@ -67,6 +66,7 @@
6766
"lint-staged": "^15.2.7",
6867
"prettier": "^3.3.3",
6968
"rimraf": "^6.0.1",
69+
"semantic-release": "^24.0.0",
7070
"typescript": "^5.5.4",
7171
"validate-package-exports": "^0.6.0",
7272
"vitest": "^2.0.4"

0 commit comments

Comments
 (0)