Skip to content

Commit 2c6ad96

Browse files
committed
Add release workflow
1 parent dbaffeb commit 2c6ad96

File tree

5 files changed

+1316
-1280
lines changed

5 files changed

+1316
-1280
lines changed

.github/workflows/autofix.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: autofix.ci # needed to securely identify the workflow
2+
3+
on:
4+
pull_request:
5+
6+
permissions: {}
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
fix:
14+
name: Run automated fix
15+
uses: prettier/shared-workflows/.github/workflows/automated-fix.yml@main
16+
with:
17+
repository: prettier/angular-estree-parser

.github/workflows/publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Package
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
permissions: {}
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: write
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v6
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v6
25+
with:
26+
node-version: "lts/*"
27+
28+
- name: Install Dependencies
29+
run: yarn --immutable
30+
31+
- name: Build package
32+
run: yarn build
33+
34+
- name: Publish to NPM
35+
run: npm publish

.release-it.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://unpkg.com/release-it@18/schema/release-it.json",
3+
"git": {
4+
"commitMessage": "chore: release v${version}"
5+
},
6+
"github": {
7+
"release": true
8+
},
9+
"npm": {
10+
"publish": false
11+
}
12+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"fix:prettier": "prettier . --write",
3434
"test": "vitest",
3535
"build": "tsdown --unbundle",
36-
"release": "yarn build && standard-version"
36+
"release": "yarn build"
3737
},
3838
"dependencies": {
3939
"yaml": "^2.8.2"
@@ -50,7 +50,7 @@
5050
"npm-run-all2": "8.0.4",
5151
"patch-package": "8.0.1",
5252
"prettier": "3.7.4",
53-
"standard-version": "9.5.0",
53+
"release-it": "19.0.6",
5454
"tsdown": "0.17.0-beta.6",
5555
"typescript": "5.9.3",
5656
"typescript-eslint": "8.48.1",

0 commit comments

Comments
 (0)