-
Notifications
You must be signed in to change notification settings - Fork 877
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4985c85
commit cbc9bd2
Showing
1 changed file
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 }} |