forked from chakra-ui/panda
-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (86 loc) · 2.53 KB
/
extension.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Publish Extension
on:
workflow_dispatch:
push:
paths:
- 'extension/**'
branches:
- main
jobs:
create_timestamp:
runs-on: ubuntu-latest
outputs:
timestamp: ${{ steps.set_timestamp.outputs.timestamp }}
steps:
- name: Set Timestamp
id: set_timestamp
run: |
echo "::set-output name=timestamp::$(date +'%s' | cut -c1-8)"
release:
name: VSCode Marketplace
needs: create_timestamp
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
target: win32-x64
npm_config_arch: x64
- os: windows-latest
target: win32-ia32
npm_config_arch: ia32
- os: windows-latest
target: win32-arm64
npm_config_arch: arm
- os: ubuntu-latest
target: linux-x64
npm_config_arch: x64
- os: ubuntu-latest
target: linux-arm64
npm_config_arch: arm64
- os: ubuntu-latest
target: linux-armhf
npm_config_arch: arm
- os: ubuntu-latest
target: alpine-x64
npm_config_arch: x64
- os: macos-latest
target: darwin-x64
npm_config_arch: x64
- os: macos-latest
target: darwin-arm64
npm_config_arch: arm64
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install
uses: ./.github/composite-actions/install
- name: Build packages
run: pnpm build
- name: Set Environment Variable
run: echo "VSCE_RELEASE_VERSION=$(date +'%s' | cut -c1-8)" >> $GITHUB_ENV
- name: Prepare npm install
working-directory: ./extension/vscode
run: pnpm rewrite-deps && pnpm clean
- name: Overrides esbuild
working-directory: ./extension/vscode
if: contains(matrix.target, 'darwin-arm64')
run: pnpm override-esbuild
- name: Install with npm
working-directory: ./extension/vscode
run: |
npm i --ignore-scripts
env:
npm_config_arch: ${{ matrix.npm_config_arch }}
- name: Publish RC
working-directory: ./extension/vscode
run: |
pnpm release
env:
VSCE_TOKEN: ${{secrets.VSCE_TOKEN}}
VSCE_RELEASE_VERSION: ${{ needs.create_timestamp.outputs.timestamp }}
VSCE_RELEASE_TYPE: rc
VSCE_TARGET: ${{ matrix.target }}