Skip to content

CI: Adds release job #16

CI: Adds release job

CI: Adds release job #16

Workflow file for this run

name: NodeJS with Webpack
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install vsce
run: |
npm install -g @vscode/vsce
- name: Build
run: |
npm install
vsce package
release:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@master
- name: Create release
uses: Roang-zero1/github-create-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release artifacts
uses: Roang-zero1/github-upload-release-artifacts-action@v2
with:
args: "dist/bin/ dist/shell/compiled.sh"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}