@crazygiscool/cap 1.0.0 → 1.1.8

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,53 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ release:
8
+ types: [published]
9
+
10
+ jobs:
11
+ test:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 20
18
+ - run: npm ci
19
+ - run: npm run build
20
+ - run: npm test
21
+
22
+ publish-npm:
23
+ needs: test
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ - uses: actions/setup-node@v4
28
+ with:
29
+ node-version: 20
30
+ registry-url: "https://registry.npmjs.org"
31
+ - run: npm ci
32
+ - run: npm run build
33
+ - run: npm publish --access public
34
+ env:
35
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36
+
37
+ publish-github:
38
+ needs: test
39
+ runs-on: ubuntu-latest
40
+ permissions:
41
+ packages: write
42
+ steps:
43
+ - uses: actions/checkout@v4
44
+ - uses: actions/setup-node@v4
45
+ with:
46
+ node-version: 20
47
+ registry-url: "https://npm.pkg.github.com"
48
+ scope: "@crazygiscool"
49
+ - run: npm ci
50
+ - run: npm run build
51
+ - run: npm publish
52
+ env:
53
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crazygiscool/cap",
3
- "version": "1.0.0",
3
+ "version": "1.1.8",
4
4
  "description": "The Central Archive Protocol core library for lore documentation",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",