Skip to content

Commit ab3eb28

Browse files
committed
Improve readability of publish workflow
1 parent a98b79e commit ab3eb28

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/publish.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,28 @@ on:
66
paths-ignore:
77
# Do not run the pipeline if only Markdown files changed
88
- '**.md'
9+
910
jobs:
1011
build:
1112
runs-on: ubuntu-latest
1213
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
14+
- name: Check out repository
15+
uses: actions/checkout@v3
16+
17+
- name: Set up node
18+
uses: actions/setup-node@v3
1519
with:
1620
node-version: 16
1721
registry-url: 'https://registry.npmjs.org'
1822
cache: 'npm'
19-
- run: npm ci
20-
- run: npm run build
21-
- run: npm publish --access public
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build extension
28+
run: npm run build
29+
30+
- name: Publish extension
31+
run: npm publish --access public
2232
env:
2333
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)