gm-printer 10.27.0 → 10.27.2

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,49 @@
1
+ name: Release
2
+
3
+ permissions:
4
+ contents: write
5
+
6
+ on:
7
+ push:
8
+ tags:
9
+ - 'v*'
10
+
11
+ jobs:
12
+ release:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v3
16
+ with:
17
+ fetch-depth: 0
18
+
19
+ - name: Set node
20
+ uses: actions/setup-node@v3
21
+ with:
22
+ node-version: 16.x
23
+ registry-url: 'https://registry.npmjs.org'
24
+
25
+ - name: ChangeLog
26
+ run: npx changelogithub
27
+ env:
28
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
29
+
30
+ - name: Setup
31
+ run: npm i -g @antfu/ni
32
+
33
+ - name: Install
34
+ run: nci
35
+
36
+ - name: Build
37
+ run: npm run build
38
+
39
+ - name: Release
40
+ run: |
41
+ if [[ ${{ github.ref }} == *refs/tags/*-beta* ]]; then
42
+ npm publish --tag beta
43
+ elif [[ ${{ github.ref }} == *refs/tags/*-alpha* ]]; then
44
+ npm publish --tag alpha
45
+ else
46
+ npm publish
47
+ fi
48
+ env:
49
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}