forked from denysdovhan/purifier-card
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch(semantic-release): Add semantic-release
- Loading branch information
1 parent
053f143
commit 658b6f1
Showing
3 changed files
with
37 additions
and
12 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
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 |
---|---|---|
@@ -1,25 +1,31 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
release: | ||
name: Prepare release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
# Build | ||
- name: Build the file | ||
run: | | ||
cd /home/runner/work/purifier-card/purifier-card | ||
npm install | ||
npm run build | ||
# Upload build file to the release as an asset | ||
- name: Upload zip to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: /home/runner/work/purifier-card/purifier-card/dist/purifier-card.js | ||
asset_name: purifier-card.js | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
- name: Release | ||
run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# - name: Upload zip to release | ||
# uses: svenstaro/upload-release-action@v1-release | ||
# with: | ||
# repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
# file: /home/runner/work/purifier-card/purifier-card/dist/purifier-card.js | ||
# asset_name: purifier-card.js | ||
# tag: ${{ github.ref }} | ||
# overwrite: true |
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