File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 - uses : actions/setup-node@v1
1717 with :
1818 node-version : ' 10.x'
19- - run : yarn install
19+ - run : yarn install --frozen-lockfile
2020 - run : yarn lint
2121 - run : yarn lint:templates
2222 - run : yarn test
Original file line number Diff line number Diff line change 1+ name : NPM Publish
2+ on :
3+ release :
4+ types : [published]
5+
6+ jobs :
7+ release :
8+ defaults :
9+ run :
10+ working-directory : client
11+ name : Release to NPM
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ with :
16+ # "ref" specifies the branch to check out.
17+ # "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
18+ ref : ${{ github.event.release.target_commitish }}
19+ - name : Use Node 10
20+ uses : actions/setup-node@v1
21+ with :
22+ node-version : ' 10.x'
23+ # Specifies the registry, this field is required!
24+ registry-url : https://registry.npmjs.org/
25+ - run : yarn install --frozen-lockfile
26+ # set up git since we will later push to the repo
27+ - run : git config --global user.name "GitHub Bot"
28+ - run : git config --global user.email "viame-web@kitware.com"
29+ # Run some sanity checks
30+ - run : yarn lint
31+ - run : yarn lint:templates
32+ - run : yarn test
33+ # Build and publish
34+ - run : yarn build:lib
35+ - run : yarn publish --new-version ${{ github.event.release.tag_name }}
36+ env :
37+ # Use a token to publish to NPM. Must configure this!
38+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
39+ # push the version changes to GitHub
40+ - run : git push
41+ env :
42+ # The secret is passed automatically. Nothing to configure.
43+ github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11{
22 "name" : " vue-media-annotator" ,
3- "version" : " 1.0.0-beta.1 " ,
3+ "version" : " 1.0.2 " ,
44 "scripts" : {
55 "serve" : " vue-cli-service serve platform/web-girder/main.ts" ,
66 "build:web" : " vue-cli-service build platform/web-girder/main.ts" ,
You can’t perform that action at this time.
0 commit comments