-
Notifications
You must be signed in to change notification settings - Fork 15
34 lines (32 loc) · 942 Bytes
/
Copy pathrelease.yml
File metadata and controls
34 lines (32 loc) · 942 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
name: Release
on:
push:
tags: ['v*']
permissions:
contents: write
# https://docs.npmjs.com/trusted-publishers
id-token: write
jobs:
release:
name: Release
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: lts/*
# Skip install and test because we can't use --ignore-scripts. We (unfortunately)
# still need install scripts because `registry-js` lacks embedded prebuilt binaries
# and I don't like allowing third-party scripts to run before publish.
# - name: Install
# run: npm install --ignore-scripts
# - name: Test
# run: npm test
- name: Publish
run: npm publish
- name: Create GitHub Release
uses: anton-yurchenko/git-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}