-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 818 Bytes
/
release.yml
File metadata and controls
32 lines (29 loc) · 818 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
30
31
32
name: Release
on:
workflow_dispatch:
jobs:
npm:
name: npm
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Git
run: |
git config --global user.name GitHub Actions
git config --global user.email J-R-Oliver@users.noreply.github.com
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: https://registry.npmjs.org
- name: Install Dependencies
run: npm ci
- name: Generate Changelog
run: npx standard-version
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Commit Changelog & tag
run: git push --tags origin HEAD:main