-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (30 loc) · 763 Bytes
/
Copy pathpublish.yml
File metadata and controls
34 lines (30 loc) · 763 Bytes
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
name: Publish Package
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
name: 'Publish'
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build library
run: npm run build -- ngx-fluent
- name: Copy root README file to lib
run: cp -rf README.md ./dist/ngx-fluent
- name: Publish to NPM
run: cd ./dist/ngx-fluent && npm publish --access public