Skip to content

Commit

Permalink
Merge pull request #11 from haoblackj/develop
Browse files Browse the repository at this point in the history
CI:ReSurrect semantic-release
  • Loading branch information
haoblackj authored Feb 12, 2022
2 parents a935df6 + 6e3ed55 commit 9b8907e
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 25 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
pull_request:
types: [closed]
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: npx semantic-release
24 changes: 1 addition & 23 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,4 @@ jobs:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Install VSCE
run: npm install vsce -g
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: vsce publish --no-yarn
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 changes: 26 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "convertwidth4novelwriter",
"displayName": "Convert Width for novel writer",
"description": "半角文字と全角文字を相互に変換する、Visual Studio Codeの機能拡張です。",
"version": "0.4.8",
"version": "0.0.0-semantic-release",
"publisher": "haoblackj",
"license": "MIT",
"bugs": {
Expand Down Expand Up @@ -190,6 +190,20 @@
"type": "git",
"url": "https://github.com/haoblackj/vsce-convertwidth.git"
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"semantic-release-vsce",
"@semantic-release/github"
],
"branches": [
"master"
],
"verifyConditions": [
"semantic-release-vsce",
"@semantic-release/github"
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
Expand All @@ -199,9 +213,19 @@
"deploy": "vsce publish --no-yarn",
"semantic-release": "semantic-release"
},
"prepare": {
"path": "semantic-release-vsce",
"packageVsix": true
},
"publish": [
"semantic-release-vsce",
{
"path": "@semantic-release/github",
"assets": "*.vsix"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
Expand Down

0 comments on commit 9b8907e

Please sign in to comment.