File tree 2 files changed +5
-10
lines changed
2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 54
54
packageJSON.version += packageJSON.version.includes('-') ? '.' : '-';
55
55
packageJSON.version += `canary.pr.${pull_request.number}.${pull_request.head.sha}`;
56
56
57
+ packageJSON.deprecated =
58
+ `You are using canary version build from ${pull_request.url}, no gurantees provided so please use your own discretion.`;
59
+
57
60
assert(
58
61
packageJSON.scripts == null,
59
62
'No scripts allowed for security reasons!',
@@ -65,20 +68,12 @@ jobs:
65
68
'utf-8',
66
69
);
67
70
68
- core.exportVariable('PR_URL', pull_request.url);
69
71
core.exportVariable('PR_NUMBER', pull_request.number);
70
72
core.exportVariable('NPM_TAG', packageJSON.publishConfig.tag);
71
73
core.exportVariable('NPM_VERSION', packageJSON.version);
72
74
73
75
- name : Publish NPM package
74
- run : npm publish ./npmDist
75
- env :
76
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
77
-
78
- - name : Add deprecate message on NPM package
79
- run : |
80
- npm deprecate "graphql@$NPM_VERSION" \
81
- "You are using canary version build from $PR_URL, no gurantees provided so please use your own discretion."
76
+ run : npm publish --ignore-scripts ./npmDist
82
77
env :
83
78
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
84
79
Original file line number Diff line number Diff line change 83
83
# run: npm ls --depth 999
84
84
85
85
- name : Run npm install
86
- run : npm install --force --package-lock-only --ignore-scripts --engine-strict --strict-peer-deps
86
+ run : npm install --ignore-scripts -- force --package-lock-only --engine-strict --strict-peer-deps
87
87
88
88
- name : Check that package-lock.json is in sync with package.json
89
89
run : git diff --exit-code package-lock.json
You can’t perform that action at this time.
0 commit comments