Skip to content

Commit

Permalink
build(release.yml): set node-version to lts/*
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Sep 10, 2022
1 parent 466b1b8 commit a6915be
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on:
"on":
push:
branches:
- master
Expand All @@ -11,11 +11,11 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
node-version: lts/*
cache: npm
- run: npm ci
- run: npm run build
- run: rm .gitignore # dist/ folder is ignored by default
- run: rm .gitignore
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -24,10 +24,15 @@ jobs:
git config user.email [email protected]
git add .gitignore dist/
git commit -m "build"
- run: "git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v1"
- run: >-
git push -f
https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
HEAD:refs/heads/v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# v1.x is deprecated. Remove with v2
- run: "git push -f https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v1.x"
- run: >-
git push -f
https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
HEAD:refs/heads/v1.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a6915be

Please sign in to comment.