-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 857 Bytes
/
rc.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
name: NPM Publish (rc)
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+
jobs:
publish-rc:
if: github.event_name == 'push'
runs-on: ubuntu-latest
environment:
name: rc
url: https://www.npmjs.com/package/linted?activeTab=versions
name: Build/Publish (rc)
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
submodules: true
lfs: false
- name: Install Node
id: node
uses: actions/setup-node@v4
with:
node-version: 22
check-latest: true
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
id: ci
run: npm ci
- name: Publish to NPM
id: publish
run: npm publish
env: { NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" }