Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build #20

Merged
merged 3 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- '!main'
- "!main"
pull_request:
branches:
- main
Expand All @@ -13,12 +13,12 @@ jobs:
build-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
cache: "npm"
- name: Update NPM
run: npm install -g npm
- name: NPM Install
Expand All @@ -31,12 +31,12 @@ jobs:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
cache: "npm"
- name: Update NPM
run: npm install -g npm
- name: NPM Install
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Get Release Version
id: getReleaseVersion
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/v}

- name: Use Node.js 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
Expand All @@ -47,7 +47,7 @@ jobs:
run: npm run build

- name: Upload package artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: bcrypt-edge-package
path: |
Expand All @@ -61,7 +61,7 @@ jobs:
needs: build
steps:
- name: Use Node.js 18.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
Expand All @@ -72,6 +72,8 @@ jobs:
uses: actions/download-artifact@v3
with:
name: bcrypt-edge-package
- name: NPM install
run: npm i
- name: Publish to NPM
run: npm publish --access public
env:
Expand All @@ -83,7 +85,7 @@ jobs:
needs: publish-package
steps:
## Checkout so we can apply the new tag
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: "0"

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"name": "Bruce Harrison"
},
"scripts": {
"preprepare": "npm install rollup",
"prepare": "npm run build",
"build": "rollup -c",
"test": "vitest",
Expand Down