forked from Authress/authress-sdk.js
-
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.
Migrate from travis to github actions.
- Loading branch information
Showing
5 changed files
with
79 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
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
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 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- 'release/**' | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
- 'release/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.21.0 | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install packages | ||
run: npm install | ||
- name: Run build | ||
run: node make.js build | ||
- name: Test | ||
run: yarn lint && yarn test | ||
- name: Deploy to NPM | ||
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push' | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||
|
||
- name: After build | ||
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: node make.js after_build | ||
- name: Create Github Release and Tag | ||
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push' | ||
run: | | ||
git tag ${GITHUB_REF/refs\/heads\/release\//}.$GITHUB_RUN_NUMBER | ||
git push origin ${GITHUB_REF/refs\/heads\/release\//}.$GITHUB_RUN_NUMBER |
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 |
---|---|---|
|
@@ -427,6 +427,13 @@ [email protected]: | |
optionalDependencies: | ||
fsevents "~2.1.1" | ||
|
||
ci-build-tools@^1.0.13: | ||
version "1.0.13" | ||
resolved "https://registry.yarnpkg.com/ci-build-tools/-/ci-build-tools-1.0.13.tgz#5c63e99d088a3052e06c2a07ebede586bd14cffc" | ||
integrity sha1-XGPpnQiKMFLgbCoH6+3lhr0Uz/w= | ||
dependencies: | ||
semver "^5.0.3" | ||
|
||
ci-job-number@^1.2.2: | ||
version "1.2.2" | ||
resolved "https://registry.yarnpkg.com/ci-job-number/-/ci-job-number-1.2.2.tgz#f4e5918fcaeeda95b604f214be7d7d4a961fe0c0" | ||
|