Skip to content

Commit

Permalink
chore: add lactame build
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Apr 30, 2024
1 parent 6537ec6 commit 2be93fe
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lactame.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy build on lactame.com

on:
release:
types: [published]

env:
NODE_VERSION: 20.x

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get package name
run: echo "PACKAGE_NAME=$(jq .name package.json | tr -d '"')" >> $GITHUB_ENV
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Deploy to lactame.com
uses: zakodium/lactame-action@v1
with:
token: ${{ secrets.LACTAME_TOKEN }}
name: ${{ env.PACKAGE_NAME }}
folder: dist
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules
.idea
logs
lib
dist
*.log
npm-debug.log*
coverage
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"ml-airpls.d.ts"
],
"scripts": {
"build": "cheminfo-build --entry src/index.js --root AirPLS",
"compile": "rollup -c",
"prepack": "npm run compile",
"eslint": "eslint src",
Expand All @@ -36,6 +37,7 @@
"homepage": "https://github.com/mljs/airpls#readme",
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.24.1",
"cheminfo-build": "^1.2.0",
"eslint": "^8.57.0",
"eslint-config-cheminfo": "^9.2.0",
"jest": "^29.7.0",
Expand Down

0 comments on commit 2be93fe

Please sign in to comment.