This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
-
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.
- Loading branch information
1 parent
bf38a7b
commit 7be1a43
Showing
1 changed file
with
6 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 |
---|---|---|
|
@@ -2,6 +2,11 @@ name: Build and Release | |
|
||
on: push | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GRAPHQL_API_ENDPOINT: ${{ secrets.GRAPHQL_API_ENDPOINT }} | ||
GRAPHQL_API_KEY: ${{ secrets.GRAPHQL_API_KEY }} | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
|
@@ -12,8 +17,7 @@ jobs: | |
with: | ||
node-version: "12.x" | ||
- name: Authenticate with NPM | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
run: | | ||
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc | ||
- name: Keep npm cache around to speed up installs | ||
|
@@ -33,15 +37,10 @@ jobs: | |
cat .version | ||
- name: Build | ||
run: npm run build | ||
env: | ||
GRAPHQL_API_ENDPOINT: ${{ secrets.GRAPHQL_API_ENDPOINT }} | ||
GRAPHQL_API_KEY: ${{ secrets.GRAPHQL_API_KEY }} | ||
- name: Lint | ||
run: npm run lint | ||
- name: Publish latest release to GitHub pages | ||
if: contains(github.ref, 'saga') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
echo "machine github.com login authtoken password ${GITHUB_TOKEN}" > ~/.netrc | ||
git config --global user.email "[email protected]" | ||
|
@@ -55,8 +54,6 @@ jobs: | |
git push -f origin HEAD:gh-pages | ||
- name: Semantic release | ||
continue-on-error: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
npm i --no-save semantic-release | ||
npx semantic-release |