Skip to content

Commit

Permalink
Fix publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
haroldadmin committed Apr 6, 2024
1 parent 75264fe commit 87e5a18
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,13 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"

node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci

- run: npm run build

- run: npm test

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"description": "Parser for robots.txt",
"author": "haroldadmin",
"license": "Apache-2.0",
"repository": "https://www.github.com/haroldadmin/robotstxt-parser",
"repository": {
"type": "git",
"url": "git+https://github.com/haroldadmin/robotstxt-parser.git"
},
"keywords": [
"robots.txt",
"parser",
Expand Down

0 comments on commit 87e5a18

Please sign in to comment.