Skip to content

Commit 4b0bd1e

Browse files
committed
chore: change release command
1 parent 30e935d commit 4b0bd1e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/publish.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
permissions:
9-
contents: write # Grants permission to push code, commits, and tags
9+
contents: write
1010
issues: write
1111

1212
jobs:
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install node-pre-gyp-github
3434
run: npm install -g node-pre-gyp-github
3535

36-
# Build the macOS binary
36+
# Build macOS binary explicitly (optional, could be redundant with node-pre-gyp)
3737
- name: Build macOS binary
3838
run: npm run build:macos
3939

@@ -45,28 +45,28 @@ jobs:
4545
- name: Publish binary to GitHub Releases
4646
env:
4747
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.NODE_PRE_GYP_GITHUB_TOKEN }}
48-
run:
49-
node-pre-gyp-github publish
48+
run: node-pre-gyp-github publish --release
5049

51-
# Set Git user identity (for version bump commit)
50+
# Set Git user identity (for version bump commit)
5251
- name: Set Git user identity
5352
run: |
5453
git config --global user.name "Timeo Williams"
5554
git config --global user.email "timwillie73@gmail.com"
56-
# Bump the package version
55+
56+
# Bump the package version
5757
- name: Bump version
5858
run: npm version patch
5959

60-
# Push version commit and tag to GitHub
60+
# Push version commit and tag to GitHub
6161
- name: Push version commit and tag
6262
run: |
6363
git push origin main --tags
6464
65-
# Fetch all tags to make sure the latest tag is available
65+
# Fetch all tags to make sure the latest tag is available
6666
- name: Fetch all tags
6767
run: git fetch --tags
6868

69-
# Publish to npm
69+
# Publish to npm
7070
- name: Publish to npm
7171
env:
7272
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@deepfocus/get-windows",
33
"version": "1.0.13",
4-
"description": "Custom version of get-windows for MacOS fixes",
4+
"description": "Custom version of get-windows for MacOS fixes. This module is intended to be used with node-pre-gyp. Be sure to configure and install node-pre-gyp first. Update the binary properties 'host' and 'remote_path' to match: 'host': 'https://github.com/[owner]/[repo]/releases/download/', 'remote_path': '{version}'. Do not replace {version}.",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/Tech-Nest-Ventures/get-windows.git"

0 commit comments

Comments
 (0)