Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xBoyMinemc authored Nov 5, 2024
1 parent 97dd979 commit 0c44607
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,27 @@ jobs:
- name: Install dependencies
run: npm i

- name: tsc build
run: tsc
# - name: tsc build
# run: tsc

- name: webpack build
run: webpack
# - name: webpack build
# run: webpack

- name: Build project
run: node packer.js
# - name: Build project
# run: node packer.js

- name: Release
uses: softprops/action-gh-release@v1
# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# files: ./node_modules/*
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用 GitHub 提供的 token 进行发布


- name: Upload compressed archive
uses: actions/upload-artifact@v2
with:
files: ./node_modules/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用 GitHub 提供的 token 进行发布
name: my-compressed-archive
path: ./node_modules/


0 comments on commit 0c44607

Please sign in to comment.