-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.21 KB
/
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
name: "CI/CD NPM"
on:
push:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: node
uses: actions/setup-node@v2
with:
clean: true
node-version: 20
registry-url: https://registry.npmjs.org
- name : "configuring git"
run: |
git config --global user.email "${{github.actor}}@users.noreply.github.com"
git config --global user.name "${{github.actor}}"
- name : "install_dependencies"
run: npm install
working-directory: ./
- name : "check build"
run: npm pack --dry-run
working-directory: ./
- name : "versioning"
run: npm version patch
working-directory: ./
- name : "build"
run: npm run build
working-directory: ./
- name : "publish"
run: npm publish --access public
working-directory: ./
env:
NODE_AUTH_TOKEN: ${{secrets.PVSCREATIONS}}