Skip to content

Commit

Permalink
better autodeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Chicken committed Oct 9, 2022
1 parent 5796877 commit e0f29ef
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/main.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish

on:
push:
tags:
- v*

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Use Node.js v16
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
registry-url: https://registry.npmjs.org/
- name: Install Dependencies
run: yarn --frozen-lockfile
- name: Publish
run: yarn deploy -p "$VSCE_TOKEN"
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build": "yarn --ignore-engines build-base --sourcemap",
"watch": "yarn --ignore-engines build-base --sourcemap --watch",
"lint": "eslint src --ext ts",
"bundle": "yarn --ignore-engines vsce package",
"bundle": "vsce package",
"deploy": "vsce publish"
},
"engines": {
Expand Down

0 comments on commit e0f29ef

Please sign in to comment.