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