-
-
Notifications
You must be signed in to change notification settings - Fork 96
46 lines (44 loc) · 1.58 KB
/
release.yml
File metadata and controls
46 lines (44 loc) · 1.58 KB
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
name: Release
on:
workflow_run:
workflows: [Test]
types: [completed]
branches: [master, next]
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_branch }}
- uses: actions/setup-node@v6
with:
node-version: 22
cache: 'npm'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: git config user.name "cerebral[bot]"
- run: git config user.email "136202705+cerebral[bot]@users.noreply.github.com"
- name: Create token
id: create_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: Release packages
run: npm run release -- --no-parallel --print-release
if: github.event_name != 'pull_request'
env:
REPO_COOKER_GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish vscode extension to Visual Studio Marketplace
if: github.event_name != 'pull_request' && github.event.workflow_run.head_branch == 'master'
uses: HaaLeo/publish-vscode-extension@v2
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
packagePath: ./packages/overmind-devtools-vscode/
dependencies: false
skipDuplicate: true