From edb766d06c3ed1603b78d5aec9848698bb12cd46 Mon Sep 17 00:00:00 2001 From: tumble Date: Thu, 12 May 2022 13:41:52 +0100 Subject: [PATCH] versioning and a list of commands --- .github/workflows/cd.yml | 48 +++++++++++++++++++--------------------- .nvmrc | 2 +- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 910913e..fc6a05a 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 diff --git a/.nvmrc b/.nvmrc index 0783219..7ce18f2 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -7.24.0 +v17.7.1