-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1016 Bytes
/
Copy pathpublish-stylelint-config.yml
File metadata and controls
42 lines (35 loc) · 1016 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
42
name: Publish stylelint-config to NPM
on:
push:
branches:
- main
paths:
- "packages/stylelint-config/**"
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
sparse-checkout-cone-mode: "true"
sparse-checkout: packages/stylelint-config
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
registry-url: "https://registry.npmjs.org"
cache: "npm"
cache-dependency-path: packages/stylelint-config/package-lock.json
- name: Install dependencies
run: npm ci
- name: Publish to NPM
run: npm publish --provenance --access public
working-directory: ./packages/stylelint-config
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_CICD }}