3 Commits

Author SHA1 Message Date
8b3b4f4429 fix: Add permission for workflow 2023-12-04 10:24:41 +08:00
5951579e82 fix: always update main branch 2023-12-04 10:21:17 +08:00
74c59ef00c fix: Add npm install command 2023-12-04 10:17:21 +08:00

View File

@ -1,5 +1,8 @@
name: Build and Publish
permissions:
contents: write
on:
push:
tags:
@ -12,11 +15,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: 'main'
- uses: actions/setup-node@v4
with:
node-version: 16
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm install -D
- run: npm run package
- run: |
git config user.name github-actions