Skip to content

Commit c28b4b2

Browse files
committed
Improve release GitHub action
1 parent 98098fe commit c28b4b2

File tree

5 files changed

+5050
-222
lines changed

5 files changed

+5050
-222
lines changed

.github/workflows/push.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- "main"
7+
- "next"
78
# Github Actions don't support YAML anchors yet, so we have to repeat
89
# the paths-ignore in both push and pull_request events.
910
# More info: https://github.com/actions/runner/issues/1182
@@ -15,6 +16,7 @@ on:
1516
pull_request:
1617
branches:
1718
- "main"
19+
- "next"
1820
paths-ignore:
1921
- ".husky/**"
2022
- ".vscode/**"
@@ -28,7 +30,7 @@ jobs:
2830
contents: read
2931
uses: ./.github/workflows/lint.yml
3032

31-
build-jetbrains:
33+
build:
3234
name: Build
3335
permissions:
3436
contents: read

.github/workflows/release.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
1-
name: Publish
1+
name: Lint & build & publish
22

33
on:
44
push:
55
tags:
66
- "v*.*.*"
77

88
jobs:
9-
build:
9+
lint:
10+
name: Lint
11+
permissions:
12+
contents: read
13+
uses: ./.github/workflows/lint.yml
14+
15+
build-publish:
16+
name: Build & Publish
1017
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
actions: read
1121
steps:
1222
- uses: actions/checkout@v4
1323
with:
@@ -16,17 +26,16 @@ jobs:
1626
- uses: actions/setup-node@v4
1727
with:
1828
node-version-file: ".nvmrc"
29+
cache: "npm"
1930

2031
- run: npm ci
2132

22-
# TODO: add lint workflow call
23-
2433
- name: Get version
2534
id: version
2635
run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
2736

2837
- name: Bump version in package.json
29-
run: npm version ${{ steps.version.outputs.version }} --no-commit-hooks --no-git-tag-version
38+
run: npm version ${{ steps.version.outputs.version }} --no-git-tag-version
3039

3140
- name: Publish to Visual Studio Marketplace
3241
id: publishToVSMarketplace

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// for the documentation about the extensions.json format
44
"recommendations": [
55
"dbaeumer.vscode-eslint",
6-
"stylelint.vscode-stylelint",
76
"davidanson.vscode-markdownlint",
87
"esbenp.prettier-vscode",
98
"streetsidesoftware.code-spell-checker"

0 commit comments

Comments
 (0)