Skip to content

Commit 2ed0672

Browse files
committed
ci: update publish scripts
1 parent 17818f0 commit 2ed0672

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: Node.js Package
1+
name: Publish Package
22

33
on:
44
push:
5-
tags: "v**"
5+
tags:
6+
- "v**"
67
workflow_dispatch:
78

89
jobs:
@@ -32,7 +33,6 @@ jobs:
3233

3334
- name: Publish Package 🚀
3435
run: |
35-
cd dist
3636
npm publish --provenance --access public
3737
env:
3838
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "@wopjs/tsur",
3-
"private": true,
43
"version": "0.1.7",
54
"description": "TypeScript goodies inspired by Rust.",
65
"repository": "wopjs/tsur",
@@ -34,7 +33,7 @@
3433
"dist"
3534
],
3635
"scripts": {
37-
"prepublishOnly": "npm run build && echo 'Run the npm publish command inside `dist`.' && exit 1",
36+
"prepublishOnly": "npm run build",
3837
"lint": "eslint && prettier --check .",
3938
"lint:fix": "eslint --fix && prettier --write .",
4039
"ts-check": "tsc --noEmit",

0 commit comments

Comments
 (0)