-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 792 Bytes
/
main.yml
File metadata and controls
39 lines (30 loc) · 792 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
35
36
37
38
39
name: Release Pipeline
on:
push:
branches:
- main
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest
- name: Install Package Dependencies
run: npm ci
- name: Build the Package
run: npm run build --if-present
- name: Run Tests
run: npm run test
- name: Publish Package to NPM 🚀
run: npm publish