forked from nikhiljohn10/telegram-bot-worker
-
-
Notifications
You must be signed in to change notification settings - Fork 222
29 lines (27 loc) · 763 Bytes
/
npm-publish.yml
File metadata and controls
29 lines (27 loc) · 763 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
name: publish npm package
on:
release:
types: [created]
jobs:
npm-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: latest
registry-url: https://registry.npmjs.org/
- id: node-modules-cache
uses: actions/cache@v3
with:
path: |
node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
restore-keys: node-modules-
- run: npm i
- run: npm ci
- run: npm run lint --workspace=packages
- run: npm run build --workspace=packages
- run: npm publish --workspace=packages/main
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}