-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 1.25 KB
/
publish-nt-css.yml
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
name: 'Publish NT CSS Framework'
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Authenticate with npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" > ~/.npmrc
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
working-directory: apps/nt-stylesheet
- name: Test CSS framework
run: pnpm test
working-directory: apps/nt-stylesheet
- name: Build CSS framework
run: pnpm build
working-directory: apps/nt-stylesheet
- name: Publish to npm
run: npx semantic-release-plus
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
working-directory: apps/nt-stylesheet