This repository was archived by the owner on Sep 7, 2020. It is now read-only.
File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Build and Release
2
2
3
3
on : push
4
4
5
+ env :
6
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7
+ GRAPHQL_API_ENDPOINT : ${{ secrets.GRAPHQL_API_ENDPOINT }}
8
+ GRAPHQL_API_KEY : ${{ secrets.GRAPHQL_API_KEY }}
9
+
5
10
jobs :
6
11
main :
7
12
runs-on : ubuntu-latest
12
17
with :
13
18
node-version : " 12.x"
14
19
- name : Authenticate with NPM
15
- env :
16
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
+
17
21
run : |
18
22
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc
19
23
- name : Keep npm cache around to speed up installs
@@ -33,15 +37,10 @@ jobs:
33
37
cat .version
34
38
- name : Build
35
39
run : npm run build
36
- env :
37
- GRAPHQL_API_ENDPOINT : ${{ secrets.GRAPHQL_API_ENDPOINT }}
38
- GRAPHQL_API_KEY : ${{ secrets.GRAPHQL_API_KEY }}
39
40
- name : Lint
40
41
run : npm run lint
41
42
- name : Publish latest release to GitHub pages
42
43
if : contains(github.ref, 'saga')
43
- env :
44
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
44
run : |
46
45
echo "machine github.com login authtoken password ${GITHUB_TOKEN}" > ~/.netrc
47
46
git config --global user.email "[email protected] "
55
54
git push -f origin HEAD:gh-pages
56
55
- name : Semantic release
57
56
continue-on-error : true
58
- env :
59
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60
57
run : |
61
58
npm i --no-save semantic-release
62
59
npx semantic-release
You can’t perform that action at this time.
0 commit comments