-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to manually publish new versions (#15)
- Loading branch information
1 parent
7dc88c9
commit 5ddb9c7
Showing
6 changed files
with
70 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,31 +18,41 @@ jobs: | |
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Prepare Upgrade script | ||
run: npm ci | ||
|
||
- name: Upgrade | ||
id: upgrade | ||
run: node upgrade.js | ||
continue-on-error: true | ||
|
||
- name: Install | ||
run: npm i | ||
if: steps.upgrade.outcome == 'success' && steps.upgrade.conclusion == 'success' | ||
|
||
- name: Build | ||
run: npm run build | ||
if: steps.upgrade.outcome == 'success' && steps.upgrade.conclusion == 'success' | ||
|
||
- name: Publish on NPM | ||
run: npm publish | ||
if: steps.upgrade.outcome == 'success' && steps.upgrade.conclusion == 'success' | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
- name: Commit files | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Dzeio BOT" | ||
git commit -a -m "bump from remote" | ||
if: steps.upgrade.outcome == 'success' && steps.upgrade.conclusion == 'success' | ||
|
||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
|
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
# ENV needed: | ||
# GIT_TOKEN | ||
# NPM_TOKEN | ||
name: Manual publish | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Install | ||
run: npm i | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Publish on NPM | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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