-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (54 loc) · 1.71 KB
/
release.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
55
56
57
58
59
name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [21]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: corepack enable
- run: |
git config user.name github-actions
git config user.email [email protected]
- run: npx changelogithub
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: "npm"
node-version: ${{ matrix.node }}
registry-url: "https://registry.npmjs.org/"
- uses: actions/checkout@v2
with:
fetch-depth: 3
- name: Install dependencies
run: npm install
- name: Install dependencies
run: cd playground/nuxt-app && npm install && npm run build
- run: npm run build
- name: Publish Package
run: npm publish --access public --tag latest --no-git-checks
env:
NODE_AUTH_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 @lenne.tech/nuxt-base wurde erfolgreich released."
failure_text: "Release (#${{github.ref_name}}) von @lenne.tech/nuxt-base ist fehlgeschlagen."
cancelled_text: "Release (#${{github.ref_name}}) von @lenne.tech/nuxt-base wurde abgebrochen."