File tree 2 files changed +8
-1
lines changed 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
name : Publish Canary
12
12
if : github.event.workflow_run.event == 'pull_request'
13
+ environment : canary-pr-npm
13
14
steps :
14
15
- name : Checkout repo
15
16
uses : actions/checkout@v2
75
76
- name : Publish NPM package
76
77
run : npm publish --ignore-scripts ./npmDist
77
78
env :
78
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
79
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_CANARY_PR_PUBLISH_TOKEN }}
79
80
80
81
- name : Add comment on PR
81
82
uses : actions/github-script@v5
Original file line number Diff line number Diff line change 7
7
name : Deploy to `npm` branch
8
8
needs : ci
9
9
if : github.ref == 'refs/heads/main'
10
+ environment :
11
+ name : npm-branch
12
+ url : https://github.com/graphql/graphql-js/tree/npm
10
13
uses : ./.github/workflows/deploy-artifact-as-branch.yml
11
14
with :
12
15
artifact_name : npmDist
17
20
name : Deploy to `deno` branch
18
21
needs : ci
19
22
if : github.ref == 'refs/heads/main'
23
+ environment :
24
+ name : deno-branch
25
+ url : https://github.com/graphql/graphql-js/tree/deno
20
26
uses : ./.github/workflows/deploy-artifact-as-branch.yml
21
27
with :
22
28
artifact_name : denoDist
You can’t perform that action at this time.
0 commit comments