Skip to content

Commit 2f45985

Browse files
committedFeb 11, 2025·
Modernize project structure
BREAKING CHANGE: The project now exports an ECMAScript module by default, albeit with an UMD fallback, ships with types, the dist/ directory no longer exists in version control, and Closure Compiler externs have been removed.
1 parent 7e2e93a commit 2f45985

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+3046
-3519
lines changed
 

‎.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: dcodeIO

‎.github/workflows/publish.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
publish:
6+
name: Publish
7+
if: github.repository == 'dcodeIO/bcrypt.js'
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
ref: master
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: current
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Build
19+
run: npm run build
20+
- name: Run tests
21+
run: npm test
22+
- name: Publish
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
run: |
27+
VERSION=$(npx aspublish --version)
28+
if [ -z "$VERSION" ]; then
29+
echo "Changes do not trigger a release"
30+
else
31+
echo "Publishing new version: $VERSION"
32+
npx aspublish
33+
fi

0 commit comments

Comments
 (0)
Please sign in to comment.