File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,23 @@ jobs:
177
177
name : npm-package
178
178
path : ./package.tar.gz
179
179
180
+ npm :
181
+ # the npm-package gets uploaded as an artifact in Build
182
+ # so we need that to complete before this runs
183
+ needs : build
184
+ # This environment "npm" requires someone from
185
+ # coder/code-server-reviewers to approve the PR before this job runs.
186
+ environment : npm
187
+ runs-on : ubuntu-latest
188
+ steps :
189
+ - uses : actions/checkout@v2
190
+
191
+ - name : Run ./ci/steps/publish-npm.sh
192
+ run : yarn publish:npm
193
+ env :
194
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
195
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
196
+
180
197
# TODO: cache building yarn --production
181
198
# possibly 2m30s of savings(?)
182
199
# this requires refactoring our release scripts
Original file line number Diff line number Diff line change 19
19
- name : Publish npm package and tag with "latest"
20
20
run : yarn publish:npm
21
21
env :
22
- ENVIRONMENT : " production"
23
22
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
23
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
25
- NPM_TAG : " latest"
26
24
27
25
homebrew :
28
26
# The newest version of code-server needs to be available on npm when this runs
Original file line number Diff line number Diff line change 20
20
steps :
21
21
- uses : actions/checkout@v2
22
22
23
- - name : Run ./ci/steps/publish- npm.sh
23
+ - name : Publish npm-package
24
24
run : yarn publish:npm
25
25
env :
26
26
ENVIRONMENT : " development"
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -euo pipefail
3
3
4
+ # TODOs refactor this to determine ENVIRONMENT, NPM_TAG and NPM_VERSION
5
+
4
6
main () {
5
7
cd " $( dirname " $0 " ) /../.."
6
8
source ./ci/lib.sh
You can’t perform that action at this time.
0 commit comments