-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 1.15 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
name: Build
on:
push
jobs:
check-and-publish:
name: "task-donson-build"
runs-on: ubuntu-latest
steps:
- name: "Checkout source code"
uses: actions/checkout@v2
- name: "Setup Node.js"
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://www.npmjs.com/org/
- name: "Edit config"
run: git config --global user.name "daniil.nyashka@gmail.com" && git config --global user.name "Daniel"
- name: "Install dependencies"
run: npm install
- name: "Npm publish"
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: "Telegram Notification"
uses: "appleboy/telegram-action@master"
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_TOKEN }}
args: A new task upload to the repository has been detected. Below is a link to switch to the repository:"https://github.com/DanielPobarzin/Task"