-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.76 KB
/
npm-publish.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
45
46
47
48
49
50
51
52
53
54
name: Publish packages to NPM
on:
push:
branches:
- main
jobs:
npm-publish:
if: "contains(github.event.head_commit.message, 'chore(release)')"
name: Publish packages to NPM
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node 16
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: "https://registry.npmjs.org"
always-auth: true
scope: "@hex-labs"
- name: Install dependencies with yarn
run: yarn install --frozen-lockfile
- name: Publish eslint-config
run: npm publish --access public
working-directory: "./packages/eslint-config"
env:
NODE_AUTH_TOKEN: ${{ SECRETS.NPM_TOKEN }}
- name: Publish eslint-config-react
run: npm publish --access public
working-directory: "./packages/eslint-config-react"
env:
NODE_AUTH_TOKEN: ${{ SECRETS.NPM_TOKEN }}
- name: Publish commitlint-config
run: npm publish --access public
working-directory: "./packages/commitlint-config"
env:
NODE_AUTH_TOKEN: ${{ SECRETS.NPM_TOKEN }}
- name: Publish prettier-config
run: npm publish --access public
working-directory: "./packages/prettier-config"
env:
NODE_AUTH_TOKEN: ${{ SECRETS.NPM_TOKEN }}
- name: Publish stylelint-config
run: npm publish --access public
working-directory: "./packages/stylelint-config"
env:
NODE_AUTH_TOKEN: ${{ SECRETS.NPM_TOKEN }}
- name: Publish tsconfig
run: npm publish --access public
working-directory: "./packages/tsconfig"
env:
NODE_AUTH_TOKEN: ${{ SECRETS.NPM_TOKEN }}