Skip to content

Commit

Permalink
🐛(CD): Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyDolle committed Jan 17, 2022
1 parent 4985c85 commit cbc9bd2
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,22 @@ jobs:
git config --global user.name "JeremyDolle"
git config --global user.email "[email protected]"
npm version ${{ github.event.release.tag_name }}
- run: yarn ci --omit=dev --ignore-scripts
- name: Install dependencies
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
- run: git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}"
- run: git push
- name: Commit and push
run: |
git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}"
git push
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
publish-candidate:
Expand All @@ -37,12 +47,22 @@ jobs:
git config --global user.name "JeremyDolle"
git config --global user.email "[email protected]"
npm version ${{ github.event.release.tag_name }}
- run: yarn ci --omit=dev --ignore-scripts
- name: Install dependencies
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ github.event.release.tag_name }}
- run: git commit -am "🏷️(version) Update boilerplate to rc version ${{ github.event.release.tag_name }}"
- run: git push
- name: Commit and push
run: |
git commit -am "🏷️(version) Update boilerplate to rc version ${{ github.event.release.tag_name }}"
git push
env:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cbc9bd2

Please sign in to comment.