@aaqu/node-red-aaqu-pdf 0.4.0 → 0.4.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaqu/node-red-aaqu-pdf",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "node-red pdf creator",
5
5
  "scripts": {
6
6
  "node-red": "node-red"
@@ -1,67 +0,0 @@
1
- name: Publish NPM package
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- jobs:
9
- publish:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v2
13
- with:
14
- fetch-depth: 0
15
-
16
- - name: Setup Node.js
17
- uses: actions/setup-node@v2
18
- with:
19
- node-version: '20'
20
- registry-url: 'https://registry.npmjs.org'
21
-
22
- # - name: Setup pnpm
23
- # run: npm install -g pnpm
24
- #
25
- # - name: Install dependencies
26
- # run: pnpm install
27
- #
28
- # - name: Test
29
- # run: pnpm test
30
-
31
- - name: Check the version
32
- id: check
33
- run: |
34
- CURRENT_VERSION=$(jq -r .version package.json)
35
- echo "Current version: $CURRENT_VERSION"
36
- LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
37
- echo "Latest tag: $LATEST_TAG"
38
-
39
- LATEST_VERSION=${LATEST_TAG#v}
40
-
41
- if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ];
42
- then
43
- echo "Version changed"
44
- echo "version_changed=true" >> $GITHUB_OUTPUT
45
- echo "new_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
46
- else
47
- echo "Version not changed"
48
- echo "version_changed=false" >> $GITHUB_OUTPUT
49
- fi
50
-
51
- # - name: Build
52
- # run: pnpm build
53
- # if: steps.check.outputs.version_changed == 'true'
54
-
55
- - name: Publish
56
- if: steps.check.outputs.version_changed == 'true'
57
- run: npm publish --access public --no-git-checks
58
- env:
59
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
60
-
61
- - name: Tag release
62
- if: steps.check.outputs.version_changed == 'true'
63
- run: |
64
- git config --local user.email "github-actions[bot]@users.noreply.github.com"
65
- git config --local user.name "github-actions[bot]"
66
- git tag -a "v${{ steps.check.outputs.new_version }}" -m "v${{ steps.check.outputs.new_version }}"
67
- git push origin "v${{ steps.check.outputs.new_version }}"