Skip to content

Commit

Permalink
Merge pull request #7 from garydavisonos/hotfix/gd/build-workflow
Browse files Browse the repository at this point in the history
Hotfix/gd/build workflow
  • Loading branch information
garydavisonos authored Jan 24, 2025
2 parents acc53b2 + a741be8 commit 347eb18
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
node-version: "18.x"
registry-url: "https://registry.npmjs.org/"

- name: Authenticate with npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc

- name: Install dependencies
run: npm ci --legacy-peer-deps

Expand All @@ -27,6 +32,9 @@ jobs:
- name: Build project
run: npm run build

- name: Post build
run: npm run postbuild

- name: Publish to npm
run: npm publish
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
dist/
.DS_Store
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "conditional-helpers",
"version": "2.0.0",
"version": "2.0.1",
"description": "A collection of JavaScript helper functions to be used in conditional logic within projects",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"test": "jest",
"lint": "eslint .",
"build": "tsc"
"build": "tsc",
"postbuild": "mv dist/index.* ./"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -46,6 +47,8 @@
},
"type": "module",
"files": [
"dist"
"index.d.ts",
"index.js",
"README.md"
]
}

0 comments on commit 347eb18

Please sign in to comment.