Skip to content

Commit 286580c

Browse files
committed
chore: add debug script
1 parent 6b38178 commit 286580c

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed

.github/workflows/ci.yml

+18-6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ concurrency:
1313
cancel-in-progress: false
1414

1515
jobs:
16+
debug:
17+
name: Debug
18+
runs-on: self-hosted
19+
20+
steps:
21+
- name: Dump env
22+
run: env | sort
23+
- name: Dump GitHub context
24+
env:
25+
GITHUB_CONTEXT: ${{ toJson(github) }}
26+
run: echo "$GITHUB_CONTEXT"
27+
1628
lint:
1729
name: Lint
1830
timeout-minutes: 10
@@ -24,14 +36,15 @@ jobs:
2436
with:
2537
node-version: 18
2638

27-
- name: Install
39+
- name: Load cache
2840
uses: actions/cache@v3
2941
with:
3042
path: ~/.npm
3143
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3244
restore-keys: ${{ runner.os }}-node-
3345

34-
- run: npm ci
46+
- name: Install
47+
run: npm ci
3548

3649
- name: Lint
3750
run: npm run format
@@ -47,16 +60,15 @@ jobs:
4760
with:
4861
node-version: 18
4962

50-
- name: Install
63+
- name: Load cache
5164
uses: actions/cache@v3
5265
with:
5366
path: ~/.npm
5467
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
5568
restore-keys: ${{ runner.os }}-node-
5669

57-
- run: npm ci
70+
- name: Install
71+
run: npm ci
5872

5973
- name: Test
6074
run: npm run test:cov
61-
62-
- run: echo "https://github.com/nobkd/replace-maps/archive/refs/tags/${{ github.event.release.tag_name }}.zip"

.github/workflows/publish.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ jobs:
2020
with:
2121
node-version: 18
2222

23-
- name: Install
23+
- name: Load cache
2424
uses: actions/cache@v3
2525
with:
2626
path: ~/.npm
2727
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2828
restore-keys: ${{ runner.os }}-node-
2929

30-
- run: npm ci
30+
- name: Install
31+
run: npm ci
3132

3233
- name: Build
3334
run: npm run build
@@ -41,8 +42,8 @@ jobs:
4142
addon-id: "[email protected]"
4243
addon-path: "out/replace_maps.zip"
4344
source-path: "https://github.com/nobkd/replace-maps/archive/refs/tags/${{ github.event.release.tag_name }}.zip"
44-
approval-note: |
45-
Follow the instructions in AMO-README.md
45+
approval-note: "Follow the instructions in AMO-README.md"
46+
release-note: ${{ github.event.release.body }}
4647
auth-api-issuer: ${{ secrets.AUTH_API_ISSUER }}
4748
auth-api-secret: ${{ secrets.AUTH_API_SECRET }}
4849

0 commit comments

Comments
 (0)