-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from georgejecook/chore/build-improvement
build: adds commitzen support and other build fixes
- Loading branch information
Showing
5 changed files
with
7,662 additions
and
189 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,36 @@ | ||
name: release | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
#hardcode the coveralls token...it's not overly important to protect, and github actions won't allow forks to work with coveralls otherwise | ||
COVERALLS_REPO_TOKEN: "RuXDcEBMUavqJgSdr5svlXWGDjrDEWFUI" | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
- name: Configure node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14.18.1" | ||
- name: Run full CI | ||
run: npm ci | ||
- name: Build | ||
run: npm run build | ||
- name: Configure npm | ||
run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Run release | ||
run: npm run release -ci --dry-run | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: End message | ||
run: echo 'All done. Have a nice day!' | ||
|
||
# - run: npm run publish-coverage |
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
Oops, something went wrong.