Skip to content

Commit fedb745

Browse files
committed
Switch from yarn to NPM & Add release workflow
1 parent c7a4905 commit fedb745

File tree

4 files changed

+319
-106
lines changed

4 files changed

+319
-106
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: '*'
6+
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Use Node.js 12.13.1
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 12.13.1
18+
registry-url: 'https://registry.npmjs.org'
19+
20+
- name: Install the dependencies
21+
run: npm i
22+
23+
- name: Install vsce
24+
run: npm i -g vsce
25+
26+
- name: Publish
27+
run: vsce publish -p ${{ secrets.VSCE_PAT }}

package-lock.json

Lines changed: 289 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"url": "https://github.com/TypeScriptToLua/vscode-typescript-to-lua"
1010
},
1111
"license": "Apache-2.0",
12-
"publisher": "ark120202",
12+
"publisher": "TypescriptToLua",
1313
"icon": "docs/icon.png",
1414
"categories": [
1515
"Programming Languages"
@@ -44,7 +44,8 @@
4444
]
4545
},
4646
"scripts": {
47-
"lint": "prettier --check **/*.{md,yml,json}"
47+
"lint": "prettier --check **/*.{md,yml,json}",
48+
"postversion": "git push && git push --tags"
4849
},
4950
"prettier": {
5051
"printWidth": 100,

0 commit comments

Comments
 (0)