-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 857 Bytes
/
Copy pathrelease.yml
File metadata and controls
44 lines (34 loc) · 857 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
33
34
35
36
37
38
39
40
41
42
43
44
name: Release to NPM
on:
push:
branches:
- master
permissions:
contents: write
id-token: write
defaults:
run:
working-directory: ./
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
publish-package:
runs-on: ubuntu-latest
steps:
- name: Runner Common Setup
uses: mridang/action-runner-common@v1
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v5
with:
cache: 'npm'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: npm ci
- name: Run semantic-release
uses: mridang/action-semantic-release@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}