Skip to content

Commit 083654d

Browse files
authored
build: publish npm package with goreleaser (#2363)
1 parent 79c93fb commit 083654d

File tree

6 files changed

+20
-73
lines changed

6 files changed

+20
-73
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
with:
2020
go-version: 1.24.x
2121

22+
- name: npm-login
23+
run: |
24+
npm config set '//registry.npmjs.org/:_authToken'=${{ secrets.NPM_TOKEN }}
2225
- name: Install Task
2326
uses: arduino/setup-task@v2
2427

.goreleaser.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,23 @@ winget:
136136
name: winget-pkgs
137137
branch: master
138138

139+
140+
npms:
141+
- name: "@go-task/cli"
142+
repository: "git+https://github.com/go-task/task.git"
143+
bugs: https://github.com/go-task/task/issues
144+
description: A task runner / simpler Make alternative written in Go
145+
homepage: https://taskfile.dev
146+
license: MIT
147+
author: "The Task authors"
148+
access: public
149+
keywords:
150+
- "task",
151+
- "taskfile",
152+
- "build-tool",
153+
- "task-runner"
154+
155+
139156
cloudsmiths:
140157
- organization: "task"
141158
repository: "task"

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

Taskfile.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ tasks:
203203
Please wait for the CI to finish and then do the following:
204204
205205
- Copy the changelog for v{{.VERSION}} to the GitHub release
206-
- Publish the package to NPM with `task npm:publish`
207206
- Update and push the snapcraft manifest in https://github.com/go-task/snap/blob/main/snap/snapcraft.yaml
208207
preconditions:
209208
- sh: test $(git rev-parse --abbrev-ref HEAD) = "main"
@@ -222,8 +221,3 @@ tasks:
222221
- "git push origin tag v{{.VERSION}}"
223222
- cmd: printf "%s" '{{.COMPLETE_MESSAGE}}'
224223
silent: true
225-
226-
npm:publish:
227-
desc: Publish release to npm
228-
cmds:
229-
- npm publish --access=public

package-lock.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)