-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1006 Bytes
/
Copy pathpublish-npm.yml
File metadata and controls
41 lines (33 loc) · 1006 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
40
41
name: 📦 Publish Package to GitHub NPM Registry
on:
release:
types: [published]
push:
tags:
- 'v*' # Automatically publish package when pushing a version tag, e.g. v1.0.0
permissions:
contents: read
packages: write
jobs:
publish:
name: 📤 Compile & Publish to GitHub Packages
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: 📥 Checkout Repository Code
uses: actions/checkout@v4
- name: 🟢 Setup Node.js Build-Rig
uses: actions/setup-node@v6
with:
node-version: 20
registry-url: 'https://npm.pkg.github.com'
scope: '@manucian-official'
- name: 📦 Install Project Dependencies
run: npm ci
- name: 🛠️ Build Compiled App Bundle
run: npm run build
- name: 🚀 Publish NPM Package to GitHub Packages Registry
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}