-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.21 KB
/
npm-publish.yml
File metadata and controls
51 lines (39 loc) · 1.21 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
name: NPM Publish
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
push:
branches: [ main ]
schedule:
- cron: '0 12 5 1,5,9 *' # 5th day of month, 3 times a year (Jan, May, Sep) at 12:00 UTC
workflow_dispatch:
permissions:
contents: write
id-token: write # Required for npm provenance
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Build and publish package
uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org/
- name: Configure Git
run: |
git config --global user.email "elabutin@mts.ru"
git config --global user.name "Eugene Labutin"
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Create release
run: npm run release
- name: Push changes and tags
run: git push && git push --tags
- name: Publish to NPM
run: npm publish --provenance --access public