Skip to content

Commit

Permalink
chore: use tag on release checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
ciatph committed Aug 23, 2024
1 parent 484fb49 commit 236b727
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}

- name: Use NodeJS v16.14.2
uses: actions/setup-node@v3
Expand Down Expand Up @@ -85,12 +87,19 @@ jobs:
runs-on: ubuntu-latest
needs: build-on-win
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Checkout the repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}

- name: Use NodeJS v16.14.2
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: |

- name: Publish package
run: |
cp README.md app/
cd app
npm publish
Expand Down

0 comments on commit 236b727

Please sign in to comment.