Skip to content

Commit bbded41

Browse files
authoredAug 31, 2023
Create publish.yml
1 parent d32606c commit bbded41

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
 

‎.github/workflows/publish.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: ["16.x"]
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
cache: "npm"
21+
- uses: actions/cache@v3
22+
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
23+
with:
24+
path: node_modules
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
28+
- run: npm i
29+
- run: npm run compile
30+
- run: npm run publish

0 commit comments

Comments
 (0)
Please sign in to comment.