Skip to content

Commit

Permalink
fix: update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 10, 2023
1 parent 159071a commit 05afe41
Show file tree
Hide file tree
Showing 4 changed files with 1,543 additions and 1,631 deletions.
44 changes: 26 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,41 @@
name: Release
name: Publish Package

on:
push:
tags:
- 'v*'
- v*

jobs:
release:
publish-npm:
permissions:
id-token: write
contents: write

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Use Node.js v18
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm i -g pnpm @antfu/ni
- run: nci
- run: npx conventional-github-releaser -p angular
cache: pnpm

- run: pnpm install

- run: npx changelogithub --no-group
continue-on-error: true
env:
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: yarn run build
- run: yarn publish --non-interactive
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# - run: npx vsce publish -p ${{secrets.VSCE_TOKEN}}
# env:
# VSCE_TOKEN: ${{secrets.VSCE_TOKEN}}
# - run: npx ovsx publish -p ${{secrets.OVSX_TOKEN}}
# env:
# OVSX_TOKEN: ${{secrets.OVSX_TOKEN}}
NPM_CONFIG_PROVENANCE: true
65 changes: 33 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,33 @@
{
"publisher": "antfu",
"name": "theme-vitesse",
"displayName": "Vitesse Theme",
"version": "0.7.1",
"packageManager": "pnpm@7.5.0",
"packageManager": "pnpm@8.5.0",
"description": "Vitesse theme for VS Code",
"categories": [
"Themes"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/antfu/vscode-theme-vitesse"
},
"bugs": {
"url": "https://github.com/antfu/vscode-theme-vitesse/issues"
},
"keywords": [
"theme",
"vitesse",
"light",
"dark"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/antfu/vscode-theme-vitesse"
},
"categories": [
"Themes"
],
"icon": "icon.png",
"files": [
"themes"
],
"bugs": {
"url": "https://github.com/antfu/vscode-theme-vitesse/issues"
},
"publisher": "antfu",
"scripts": {
"build": "esno src/index.ts",
"dev": "nodemon --watch src -e ts --exec \"esno src/index.ts\"",
"vscode:prepublish": "npm run build",
"lint": "eslint .",
"release": "npm run build && npx bumpp --commit --tag --push --all && vsce publish --no-dependencies"
"engines": {
"vscode": "^1.43.0"
},
"contributes": {
"themes": [
Expand Down Expand Up @@ -61,22 +58,26 @@
}
]
},
"scripts": {
"build": "esno src/index.ts",
"dev": "nodemon --watch src -e ts --exec \"esno src/index.ts\"",
"vscode:prepublish": "npm run build",
"lint": "eslint .",
"prepublishOnly": "npm run build",
"release": "bumpp --all && vsce publish --no-dependencies"
},
"devDependencies": {
"@antfu/eslint-config": "^0.19.4",
"@antfu/utils": "^0.5.0",
"@antfu/eslint-config": "^0.38.6",
"@antfu/utils": "^0.7.2",
"@types/color": "^3.0.3",
"@types/node": "^17.0.23",
"@types/node": "^18.16.7",
"color": "^4.2.3",
"eslint": "^8.12.0",
"esno": "^0.14.1",
"nodemon": "^2.0.15",
"tsup": "^5.12.4",
"typescript": "^4.6.3",
"vsce": "^2.7.0"
"eslint": "^8.40.0",
"esno": "^0.16.3",
"nodemon": "^2.0.22",
"tsup": "^6.7.0",
"typescript": "^5.0.4",
"vsce": "^2.15.0"
},
"engines": {
"vscode": "^1.43.0"
},
"icon": "icon.png",
"preview": true
}

0 comments on commit 05afe41

Please sign in to comment.