Skip to content

Commit 57e5843

Browse files
committed
ci: update release workflow, not auto publish yet
1 parent b44b8cc commit 57e5843

File tree

9 files changed

+55
-97
lines changed

9 files changed

+55
-97
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
enable-beta-ecosystems: true
3+
updates:
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
commit-message:
9+
prefix: "chore"
10+
include: "scope"
11+
- package-ecosystem: "github-actions"
12+
directory: "/"
13+
schedule:
14+
interval: "weekly"
15+
commit-message:
16+
prefix: "chore"
17+
include: "scope"

.github/workflows/lint.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ permissions:
1616
pull-requests: write
1717

1818
jobs:
19-
check:
19+
source:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
2323
with:
2424
fetch-depth: 0
2525
persist-credentials: false
2626

27-
- uses: actions/setup-node@v4
27+
- uses: actions/setup-node@cd2651c46231bc0d6f48d6b34433b845331235fe # v5.0.0
2828
with:
2929
node-version-file: "package.json"
3030
cache: "npm"
Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: "semantic / release"
22

33
on:
4-
workflow_dispatch:
54
push:
65
branches: [main]
76

@@ -19,26 +18,13 @@ jobs:
1918
uses: ./.github/workflows/lint.yaml
2019
test:
2120
uses: ./.github/workflows/test.yml
22-
release:
21+
please:
22+
needs: [lint, test]
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v4
25+
# Build and upload to stores still needs to be done manually for now
26+
- uses: googleapis/release-please-action@1155c2c8dcbd6b15e85bae6bc6d1fed9552663cb # v4.2.0
27+
id: release
2628
with:
27-
fetch-depth: 0
28-
persist-credentials: false
29-
30-
- uses: actions/setup-node@v4
31-
with:
32-
node-version-file: "package.json"
33-
cache: "npm"
34-
35-
- name: Install dependencies
36-
run: npm ci
37-
38-
- name: Build extension
39-
run: npm run build
40-
41-
- name: Trigger release
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
run: npx semantic-release
29+
config-file: release.json
30+
manifest-file: .release-manifest.json
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# https://www.conventionalcommits.org/en/v1.0.0
2-
name: "semantic / merge"
1+
name: "semantic / validation"
32

43
on:
54
pull_request_target:
@@ -11,11 +10,12 @@ concurrency:
1110
cancel-in-progress: true
1211

1312
jobs:
14-
title:
13+
# PRs should be written according to https://www.conventionalcommits.org/en/v1.0.0
14+
pull-request-title:
1515
runs-on: ubuntu-latest
1616
permissions:
1717
pull-requests: read
1818
steps:
19-
- uses: amannn/action-semantic-pull-request@v5
19+
- uses: amannn/action-semantic-pull-request@335288255954904a41ddda8947c8f2c844b8bfeb # v5.5.3
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
timeout-minutes: 30
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
1919

20-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@cd2651c46231bc0d6f48d6b34433b845331235fe # v5.0.0
2121
with:
2222
node-version-file: "package.json"
2323
cache: "npm"
@@ -32,7 +32,7 @@ jobs:
3232
run: npm run test
3333

3434
- name: Upload report
35-
uses: actions/upload-artifact@v4
35+
uses: actions/upload-artifact@de65e23aa2b7e23d713bb51fbfcb6d502f8667d8 # v.4.6.2
3636
if: always()
3737
with:
3838
name: test-report

.release-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.0.1"
3+
}

.releaserc.jsonc

Lines changed: 0 additions & 60 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"name": "jsc-unlocker",
3-
"version": "1.0.2",
2+
"version": "1.0.1",
43
"private": true,
54
"engines": {
65
"node": ">=22.0.0"
@@ -17,11 +16,7 @@
1716
"devDependencies": {
1817
"@biomejs/biome": "2.2.4",
1918
"@playwright/test": "1.55.0",
20-
"@semantic-release/changelog": "6.0.3",
21-
"@semantic-release/git": "10.0.1",
22-
"@semantic-release/github": "11.0.6",
2319
"lefthook": "1.13.0",
24-
"semantic-release": "24.2.8",
2520
"typescript": "5.9.2",
2621
"wxt": "0.20.11"
2722
}

release.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"release-type": "node",
4+
"separate-pull-requests": true,
5+
"always-update": true,
6+
"sequential-calls": true,
7+
"release-search-depth": 500,
8+
"commit-search-depth": 1000,
9+
"plugins": [
10+
{
11+
"type": "sentence-case"
12+
}
13+
],
14+
"packages": {
15+
".": {}
16+
}
17+
}

0 commit comments

Comments
 (0)