ci: update actions, fix names

This commit is contained in:
əlemi 2024-09-14 18:14:36 +02:00
parent 2746221b1f
commit 864cabbe41
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 8 additions and 8 deletions

View file

@ -25,8 +25,8 @@ jobs:
npm_config_arch: arm64 npm_config_arch: arm64
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: actions/setup-node@v2 - uses: actions/setup-node@v4
with: with:
node-version: 14.x node-version: 14.x
- run: npm install - run: npm install
@ -36,7 +36,7 @@ jobs:
- shell: pwsh - shell: pwsh
run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV
- run: npx vsce package --target ${{ env.target }} - run: npx vsce package --target ${{ env.target }}
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v4
with: with:
name: ${{ env.target }} name: ${{ env.target }}
path: "*.vsix" path: "*.vsix"
@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v4
- run: npx vsce publish --packagePath $(find . -iname *.vsix) - run: npx vsce publish --packagePath $(find . -iname *.vsix)
env: env:
VSCE_PAT: ${{ secrets.AZURE_TOKEN }} VSCE_PAT: ${{ secrets.AZURE_TOKEN }}

View file

@ -6,13 +6,13 @@ on:
- dev - dev
jobs: jobs:
build+test: build-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- uses: actions/setup-node@v2 - uses: actions/setup-node@v4
with: with:
node-version: 14.x node-version: '14'
- run: npm install - run: npm install
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}