@tossplace/pos-plugin-sdk 0.0.0 → 0.0.3

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.
@@ -6,6 +6,10 @@ on:
6
6
  branches:
7
7
  - main
8
8
 
9
+ permissions:
10
+ contents: write
11
+ pull-requests: write
12
+
9
13
  jobs:
10
14
  publish-npm:
11
15
  if: github.event.pull_request.merged == true
@@ -43,6 +47,7 @@ jobs:
43
47
  fi
44
48
 
45
49
  - name: Bump version
50
+ if: steps.get-version-type.outputs.VERSION_TYPE != ''
46
51
  run: |
47
52
  VERSION_TYPE="${{ steps.get-version-type.outputs.VERSION_TYPE }}"
48
53
  if [ -n "$VERSION_TYPE" ]; then
@@ -55,11 +60,13 @@ jobs:
55
60
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56
61
 
57
62
  - name: Publish to NPM
63
+ if: steps.get-version-type.outputs.VERSION_TYPE != ''
58
64
  run: npm publish --access public
59
65
  env:
60
66
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
61
67
 
62
68
  - name: Push version update
69
+ if: steps.get-version-type.outputs.VERSION_TYPE != ''
63
70
  run: |
64
71
  VERSION_TYPE="${{ steps.get-version-type.outputs.VERSION_TYPE }}"
65
72
  if [ -n "$VERSION_TYPE" ]; then
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tossplace/pos-plugin-sdk",
3
- "version": "0.0.0",
3
+ "version": "0.0.3",
4
4
  "description": "포스 플러그인 sdk",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
- "types": "types/src/index.d.ts",
7
+ "types": "types/index.d.ts",
8
8
  "exports": {
9
9
  "import": "./dist/index.esm.js",
10
10
  "require": "./dist/index.cjs.js"