-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 954 Bytes
/
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
name: Publish
on:
push:
tags:
- 'v*'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 18
uses: actions/setup-node@v1
with:
node-version: 18.14.1
- run: npm install
- uses: JS-DevTools/npm-publish@v1
with:
access: public
token: ${{ secrets.NPM_TOKEN }}
- name: Deploy notification
if: always()
uses: adamkdean/simple-slack-notify@master
with:
channel: '#deployments'
status: ${{ job.status }}
success_text: 'Version (#${{github.ref_name}}) von create-nuxt-base wurde erfolgreich released.'
failure_text: 'Release (#${{github.ref_name}}) von create-nuxt-base ist fehlgeschlagen.'
cancelled_text: 'Release (#${{github.ref_name}}) von create-nuxt-base wurde abgebrochen.'