Skip to content

Commit 3c4983c

Browse files
committed
v1.0.2
1 parent 419e9f1 commit 3c4983c

3 files changed

Lines changed: 45 additions & 2 deletions

File tree

.github/workflows/blank.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 }}

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)