versioning and a list of commands
This commit is contained in:
parent
8c8b044cee
commit
edb766d06c
2 changed files with 24 additions and 26 deletions
48
.github/workflows/cd.yml
vendored
48
.github/workflows/cd.yml
vendored
|
@ -5,41 +5,39 @@ name: Node.js CI
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
artifact-name: tumble-yellow-dark.vsix
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [12.x, 14.x, 16.x]
|
||||
node-version: [17.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
- run: >
|
||||
npm i -g yarn vsce
|
||||
yarn install
|
||||
yarn build --if-present
|
||||
yarn vsce package --yarn -o ${{ env.artifact-name }}
|
||||
- name: Upload a Build Artifact
|
||||
uses: actions/upload-artifact@v3.0.0
|
||||
with:
|
||||
# Artifact name
|
||||
name: extention
|
||||
# A file, directory or wildcard pattern that describes what to upload
|
||||
path: ${{ env.artifact-name }}
|
||||
- name: GitHub Releases
|
||||
uses: fnkr/github-action-ghr@v1.3
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: "npm"
|
||||
- run:
|
||||
- npm i -g yarn vsce
|
||||
- yarn install
|
||||
- yarn build --if-present
|
||||
- yarn vsce package --yarn -o ${{ env.artifact-name }}
|
||||
- name: Upload a Build Artifact
|
||||
uses: actions/upload-artifact@v3.0.0
|
||||
with:
|
||||
# Artifact name
|
||||
name: extention
|
||||
# A file, directory or wildcard pattern that describes what to upload
|
||||
path: ${{ env.artifact-name }}
|
||||
- name: GitHub Releases
|
||||
uses: fnkr/github-action-ghr@v1.3
|
||||
|
|
2
.nvmrc
2
.nvmrc
|
@ -1 +1 @@
|
|||
7.24.0
|
||||
v17.7.1
|
||||
|
|
Loading…
Reference in a new issue