@policystudio/policy-studio-ui-vue 1.0.40 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,8 +5,8 @@ on:
|
|
|
5
5
|
- master
|
|
6
6
|
|
|
7
7
|
jobs:
|
|
8
|
-
|
|
9
|
-
name:
|
|
8
|
+
tag-and-release:
|
|
9
|
+
name: Release and publish package
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
12
|
- name: Checkout repository
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
id: check
|
|
20
20
|
with:
|
|
21
21
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
22
|
-
file-url: https://unpkg.com/@policystudio/policy-studio-ui-vue@
|
|
22
|
+
file-url: https://unpkg.com/@policystudio/policy-studio-ui-vue@latest/package.json
|
|
23
23
|
static-checking: localIsNew
|
|
24
24
|
|
|
25
25
|
- name: Version update detected
|
|
@@ -38,41 +38,31 @@ jobs:
|
|
|
38
38
|
sha: context.sha
|
|
39
39
|
})
|
|
40
40
|
|
|
41
|
-
release:
|
|
42
|
-
name: Creates release
|
|
43
|
-
runs-on: ubuntu-latest
|
|
44
|
-
steps:
|
|
45
|
-
- name: Checkout code
|
|
46
|
-
uses: actions/checkout@v3
|
|
47
|
-
|
|
48
41
|
- name: Create Release
|
|
49
42
|
id: create_release
|
|
43
|
+
if: steps.check.outputs.changed == 'true' && success()
|
|
50
44
|
uses: actions/create-release@v1
|
|
51
45
|
env:
|
|
52
46
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
53
47
|
with:
|
|
54
|
-
tag_name: ${{
|
|
55
|
-
release_name: ${{
|
|
48
|
+
tag_name: 'v${{ steps.check.outputs.version }}'
|
|
49
|
+
release_name: 'v${{ steps.check.outputs.version }}'
|
|
56
50
|
draft: false
|
|
57
51
|
prerelease: false
|
|
58
52
|
|
|
59
|
-
publish:
|
|
60
|
-
name: Publish NPM.js package
|
|
61
|
-
runs-on: ubuntu-latest
|
|
62
|
-
steps:
|
|
63
|
-
- name: Checkout code
|
|
64
|
-
uses: actions/checkout@v3
|
|
65
|
-
|
|
66
53
|
- name: Setup Node.js
|
|
67
54
|
uses: actions/setup-node@v3
|
|
55
|
+
if: steps.check.outputs.changed == 'true' && success()
|
|
68
56
|
with:
|
|
69
57
|
node-version: '16.x'
|
|
70
58
|
registry-url: 'https://registry.npmjs.org'
|
|
71
59
|
|
|
72
60
|
- name: Install dependencies
|
|
73
|
-
|
|
61
|
+
if: steps.check.outputs.changed == 'true' && success()
|
|
62
|
+
run: npm install
|
|
74
63
|
|
|
75
64
|
- name: Publish to npm.js
|
|
76
|
-
|
|
65
|
+
if: steps.check.outputs.changed == 'true' && success()
|
|
66
|
+
run: npm run publish
|
|
77
67
|
env:
|
|
78
68
|
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
|