-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (39 loc) · 937 Bytes
/
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
name: Release
on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
check-latest: true
cache: 'npm'
- run: npm i -g npm@latest
- run: npm ci --no-audit
- run: npm t
npm-publish:
needs: test
runs-on: ubuntu-latest
name: Publish
permissions:
id-token: write
environment:
name: production
url: https://www.npmjs.com/package/eslint-plugin-array-func
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
check-latest: true
cache: 'npm'
- run: npm i -g npm@latest
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./package.json