Added environment

This commit is contained in:
Elio Struyf
2023-09-07 16:56:05 +02:00
parent 1128b5ac65
commit 0c613187bf
2 changed files with 15 additions and 12 deletions
+7 -6
View File
@@ -7,19 +7,21 @@ on:
jobs:
build:
name: "Build and release"
name: 'Build and release'
runs-on: ubuntu-latest
environment:
name: Beta
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Install the dependencies
run: npm i
- name: Prepare BETA
run: node scripts/beta-release.js $GITHUB_RUN_ID
@@ -28,4 +30,3 @@ jobs:
- name: Publish to open-vsx.org
run: npx ovsx publish -p ${{ secrets.OPEN_VSX_PAT }}
+8 -6
View File
@@ -7,19 +7,21 @@ on:
jobs:
build:
name: "Build and release"
name: 'Build and release'
runs-on: ubuntu-latest
environment:
name: Stable
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Install the dependencies
run: npm i
- name: Prepare MAIN release
run: node scripts/main-release.js
@@ -27,4 +29,4 @@ jobs:
run: npx @vscode/vsce publish -p ${{ secrets.VSCE_PAT }}
- name: Publish to open-vsx.org
run: npx ovsx publish -p ${{ secrets.OPEN_VSX_PAT }}
run: npx ovsx publish -p ${{ secrets.OPEN_VSX_PAT }}