-
-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (43 loc) · 1.39 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: VSCode Release
on:
push:
branches: [release]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 30
# needs: test
steps:
- run: npm -v
- run: node -v
- uses: actions/checkout@v2
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: latest
run_install: |
args: [--frozen-lockfile, --strict-peer-dependencies]
- run: pnpx zardoy-release vscode-extension
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}
# optional
EXTENSION_ICON: ${{ secrets.EXTENSION_ICON }}
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: pnpm build-plugin:npm
- run: node typescript/npm/beforePublish.mjs
- run: pnpm publish --access public --no-git-checks
working-directory: typescript
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}