-
Notifications
You must be signed in to change notification settings - Fork 250
54 lines (49 loc) · 1.39 KB
/
~publish_web.yml
File metadata and controls
54 lines (49 loc) · 1.39 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
47
48
49
50
51
52
53
54
on:
workflow_call:
inputs:
version:
type: string
required: true
force:
type: boolean
default: false
npm_tag:
type: string
required: true
jobs:
check:
runs-on: ubuntu-latest
outputs:
has_changes: ${{ steps.check.outputs.has_changes }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 100
- uses: actions/setup-node@v6
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm run nightly-check -- --platform web --force ${{ inputs.force }}
id: check
build:
needs: check
if: needs.check.outputs.has_changes == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 100
- uses: actions/setup-node@v6
with:
node-version: 'lts/*'
cache: 'npm'
registry-url: https://registry.npmjs.org/
- run: npm run update-version -- ${{inputs.version}}
- run: npm ci
- run: npm run build-web
- run: npm run build-language-server
- run: npm run build-monaco
- run: npm run nightly-pack -- --platform web --force ${{ inputs.force }}
- run: npm run nightly-publish -- --platform web --force ${{ inputs.force }} --tag ${{ inputs.npm_tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_AUTH_TOKEN }}