-
Notifications
You must be signed in to change notification settings - Fork 17
65 lines (51 loc) · 1.51 KB
/
Copy pathrelease.yml
File metadata and controls
65 lines (51 loc) · 1.51 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
55
56
57
58
59
60
61
62
63
64
65
name: Release
on:
push:
tags:
- 'v*'
permissions: {}
env:
DEBUG: 'napi:*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
permissions:
contents: read
uses: ./.github/workflows/reusable-build.yml
publish:
name: Publish
permissions:
contents: write
id-token: write
packages: write
runs-on: ubuntu-latest
needs: build
steps:
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2
- name: Install pnpm
uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6.0.0
- name: Install Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Download artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: napi/angular-compiler/artifacts
- name: Create npm dirs
run: pnpm --filter ./napi/angular-compiler exec napi create-npm-dirs
- name: Move artifacts
run: pnpm --filter ./napi/angular-compiler artifacts
- name: Build TypeScript
run: pnpm --filter ./napi/angular-compiler build:ts
- name: Publish to npm
working-directory: napi/angular-compiler
run: |
npm install -g npm
npm publish --access public