-
-
Notifications
You must be signed in to change notification settings - Fork 208
38 lines (36 loc) · 943 Bytes
/
release.yaml
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
on:
push:
tags:
- 'v*'
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Build
run: |
yarn install --ignore-scripts
yarn build
- name: Publish package to NPM 🚀
env:
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
run: |
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
npm publish
- name: Package 📦
run: yarn package
- name: Publish Release ✨
uses: softprops/action-gh-release@v2
with:
name: gitmoji-cli ${{github.ref_name}}
generate_release_notes: true
files: |
./bin/gitmoji-linux
./bin/gitmoji-macos
./bin/gitmoji-win.exe