forked from openedx/frontend-component-footer
-
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.
- change semantic-release to release based on package.json version. - publishing the package occurs when the version number changes. - action fires on commit with message "Release vX", where x is the version.
- Loading branch information
1 parent
52e0153
commit b3ff07c
Showing
2 changed files
with
16 additions
and
9 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 |
---|---|---|
|
@@ -33,8 +33,15 @@ jobs: | |
uses: codecov/codecov-action@v3 | ||
- name: Build | ||
run: npm run build | ||
- name: Release | ||
- name: Release to npmjs | ||
uses: pascalgn/[email protected] | ||
with: | ||
tag_name: "v%s" | ||
tag_message: "v%s" | ||
commit_pattern: "^Release (\\S+)" | ||
workspace: "." | ||
publish_command: "npm" | ||
publish_args: "--non-interactive" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} | ||
run: npx semantic-release | ||
NPM_AUTH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} |
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