Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 30 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Publish to VS Marketplace
name: Publish

on:
release:
types: [published]

jobs:
publish:
package:
name: Publish to VS Marketplace & Open VSX
runs-on: ubuntu-latest

steps:
Expand All @@ -24,17 +25,38 @@ jobs:
- name: Build theme
run: npm run build

- name: Package extension
run: npm run package
- name: Rename package for extension publishing
run: jq '.name = "pierre-theme"' package.json > tmp.json && mv tmp.json package.json

- name: Publish to VS Marketplace
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: npx @vscode/vsce publish --pat $VSCE_PAT

- name: Setup npm authentication
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish to Open VSX
env:
OVSX_PAT: ${{ secrets.OPEN_VSX_TOKEN }}
run: npx ovsx publish --pat $OVSX_PAT

npm:
name: Publish to npm
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public --provenance
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.DS_Store
node_modules/
/themes/
build
*.vsix
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@pierre/theme",
"displayName": "Pierre Theme",
"description": "Pierre theme for Shiki, VS Code, and more",
"version": "0.0.19",
"version": "0.0.20",
"publisher": "pierrecomputer",
"icon": "icon.png",
"galleryBanner": {
Expand Down
Loading