@pierre/theme 0.0.18 → 0.0.20

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.
@@ -1,11 +1,12 @@
1
- name: Publish to VS Marketplace
1
+ name: Publish
2
2
 
3
3
  on:
4
4
  release:
5
5
  types: [published]
6
6
 
7
7
  jobs:
8
- publish:
8
+ package:
9
+ name: Publish to VS Marketplace & Open VSX
9
10
  runs-on: ubuntu-latest
10
11
 
11
12
  steps:
@@ -24,17 +25,38 @@ jobs:
24
25
  - name: Build theme
25
26
  run: npm run build
26
27
 
27
- - name: Package extension
28
- run: npm run package
28
+ - name: Rename package for extension publishing
29
+ run: jq '.name = "pierre-theme"' package.json > tmp.json && mv tmp.json package.json
29
30
 
30
31
  - name: Publish to VS Marketplace
31
32
  env:
32
33
  VSCE_PAT: ${{ secrets.VSCE_PAT }}
33
34
  run: npx @vscode/vsce publish --pat $VSCE_PAT
34
35
 
35
- - name: Setup npm authentication
36
- run: |
37
- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
36
+ - name: Publish to Open VSX
37
+ env:
38
+ OVSX_PAT: ${{ secrets.OPEN_VSX_TOKEN }}
39
+ run: npx ovsx publish --pat $OVSX_PAT
40
+
41
+ npm:
42
+ name: Publish to npm
43
+ runs-on: ubuntu-latest
44
+ permissions:
45
+ id-token: write
46
+ contents: read
47
+
48
+ steps:
49
+ - name: Checkout code
50
+ uses: actions/checkout@v4
51
+
52
+ - name: Setup Node.js
53
+ uses: actions/setup-node@v4
54
+ with:
55
+ node-version: '20'
56
+ cache: 'npm'
57
+ registry-url: 'https://registry.npmjs.org'
38
58
 
39
59
  - name: Publish to npm
40
- run: npm publish
60
+ env:
61
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62
+ run: npm publish --access public --provenance
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pierre/theme",
3
3
  "displayName": "Pierre Theme",
4
4
  "description": "Pierre theme for Shiki, VS Code, and more",
5
- "version": "0.0.18",
5
+ "version": "0.0.20",
6
6
  "publisher": "pierrecomputer",
7
7
  "icon": "icon.png",
8
8
  "galleryBanner": {