-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add new release workflow * fix endbug/add-and-commit version * remove some ci actions temporarily * update readme
- Loading branch information
1 parent
37b45bb
commit 9360b38
Showing
6 changed files
with
122 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Release Next | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'The source branch to build. Default main.' | ||
default: main | ||
required: true | ||
releaseBranch: | ||
description: 'The release branch to commit to. Default next.' | ||
default: next | ||
required: true | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
- name: Install | ||
run: npm install --prefer-offline | ||
- name: Lint | ||
run: npm run lint | ||
- name: Build | ||
run: npm run build | ||
- name: Remove dev dependencies | ||
run: npm install --omit dev --prefer-offline | ||
- name: Commit | ||
uses: endbug/add-and-commit@v9 | ||
with: | ||
add: 'build node_modules --force' | ||
branch: ${{ github.event.inputs.releaseBranch }} | ||
message: 'Add build output' | ||
pull: 'NO-PULL' | ||
push: 'origin ${{ github.event.inputs.releaseBranch }} --force' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Reinstall dev dependencies | ||
run: npm install --prefer-offline |
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,49 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'The version tag of the release. This should match version in package.json and start with `v`. For example: `v2.0.0`' | ||
required: true | ||
releaseBranch: | ||
description: 'The release branch to commit to. Default v2.' | ||
default: v2 | ||
required: true | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
- name: Install | ||
run: npm install --prefer-offline | ||
- name: Lint | ||
run: npm run lint | ||
- name: Build | ||
run: npm run build | ||
- name: Remove dev dependencies | ||
run: npm install --omit dev --prefer-offline | ||
- name: Commit | ||
uses: endbug/add-and-commit@v9 | ||
with: | ||
add: 'build node_modules --force' | ||
branch: ${{ github.event.inputs.releaseBranch }} | ||
message: 'Add build output' | ||
pull: 'NO-PULL' | ||
push: 'origin ${{ github.event.inputs.releaseBranch }} --force' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Tag | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
body: 'TODO: Add CHANGELOG entry' | ||
tag: ${{ github.event.inputs.tag }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Reinstall dev dependencies | ||
run: npm install --prefer-offline |
Empty file.
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