Skip to content

Commit

Permalink
Merge pull request #24 from bruceharrison1984/v0.0.7-fix7
Browse files Browse the repository at this point in the history
alter build so publish works again
  • Loading branch information
bruceharrison1984 authored Jul 4, 2024
2 parents 5bbec83 + 5df678e commit 9908bce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 40 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

jobs:
build-pr:
test-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -21,25 +21,12 @@ jobs:
cache: "npm"
- name: Update NPM
run: npm install -g npm

- name: NPM Install
run: npm ci
run: npm i

- name: Build
run: npm run build
test-pr:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "npm"
- name: Update NPM
run: npm install -g npm
- name: NPM Install
run: npm ci

- name: Run unit tests
run: npx vitest run
21 changes: 1 addition & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: npm install -g npm

- name: NPM Install
run: npm ci
run: npm ci --ignore-scripts

- name: Test
run: npm run test
Expand All @@ -55,25 +55,6 @@ jobs:
LICENSE
package.json
README.md
publish-package:
runs-on: ubuntu-latest
needs: build
steps:
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/

- name: Update NPM
run: npm install -g npm
- name: Download bcrypt-edge artifact
uses: actions/download-artifact@v4
with:
name: bcrypt-edge-package
- name: install rollup globally
run: npm i rollup -g
- name: Publish to NPM
run: npm publish --access public --ignore-scripts
env:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9908bce

Please sign in to comment.