@policystudio/policy-studio-ui-vue 1.0.39 → 1.0.40

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.
@@ -0,0 +1,78 @@
1
+ name: Release and publish package
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+
7
+ jobs:
8
+ tagging:
9
+ name: Creates tag when version bump
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v3
14
+ with:
15
+ ref: master
16
+
17
+ - name: Check version changes
18
+ uses: EndBug/version-check@v1
19
+ id: check
20
+ with:
21
+ token: ${{ secrets.GITHUB_TOKEN }}
22
+ file-url: https://unpkg.com/@policystudio/policy-studio-ui-vue@1.0.39/package.json
23
+ static-checking: localIsNew
24
+
25
+ - name: Version update detected
26
+ if: steps.check.outputs.changed == 'true'
27
+ run: 'echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'
28
+
29
+ - name: Create tag
30
+ if: steps.check.outputs.changed == 'true'
31
+ uses: actions/github-script@v5
32
+ with:
33
+ script: |
34
+ github.rest.git.createRef({
35
+ owner: context.repo.owner,
36
+ repo: context.repo.repo,
37
+ ref: 'refs/tags/v${{ steps.check.outputs.version }}',
38
+ sha: context.sha
39
+ })
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
+ - name: Create Release
49
+ id: create_release
50
+ uses: actions/create-release@v1
51
+ env:
52
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53
+ with:
54
+ tag_name: ${{ github.ref }}
55
+ release_name: ${{ github.ref }}
56
+ draft: false
57
+ prerelease: false
58
+
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
+ - name: Setup Node.js
67
+ uses: actions/setup-node@v3
68
+ with:
69
+ node-version: '16.x'
70
+ registry-url: 'https://registry.npmjs.org'
71
+
72
+ - name: Install dependencies
73
+ run: npm ci
74
+
75
+ - name: Publish to npm.js
76
+ run: npm publish
77
+ env:
78
+ NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",