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

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,68 @@
1
+ name: Release and publish package
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+
7
+ jobs:
8
+ tag-and-release:
9
+ name: Release and publish package
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@latest/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
+ - name: Create Release
42
+ id: create_release
43
+ if: steps.check.outputs.changed == 'true' && success()
44
+ uses: actions/create-release@v1
45
+ env:
46
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
+ with:
48
+ tag_name: 'v${{ steps.check.outputs.version }}'
49
+ release_name: 'v${{ steps.check.outputs.version }}'
50
+ draft: false
51
+ prerelease: false
52
+
53
+ - name: Setup Node.js
54
+ uses: actions/setup-node@v3
55
+ if: steps.check.outputs.changed == 'true' && success()
56
+ with:
57
+ node-version: '16.x'
58
+ registry-url: 'https://registry.npmjs.org'
59
+ #
60
+ # - name: Install dependencies
61
+ # if: steps.check.outputs.changed == 'true' && success()
62
+ # run: npm ci
63
+
64
+ - name: Publish to npm.js
65
+ if: steps.check.outputs.changed == 'true' && success()
66
+ run: npm publish
67
+ env:
68
+ 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.42",
4
4
  "description": "Policy Studio UI",
5
5
  "main": "src/index.js",
6
6
  "author": "Policy Studio Team",