Skip to content

Commit

Permalink
Merge pull request #116 from Lightning-Flow-Scanner/feature/v4.0.0
Browse files Browse the repository at this point in the history
Feature/v4.0.0
  • Loading branch information
junners authored Aug 4, 2024
2 parents e430704 + 27cbbeb commit d2634f5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7,509 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/deploy-BETA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#######################################
# Start the job on all push to master #
#######################################
name: 'Build & Deploy - Beta'
name: "Build & Deploy - Beta"
on:
push:
branches:
Expand All @@ -23,7 +23,6 @@ concurrency:
# Set the Job #
###############
jobs:

# Deploy to NPM
deploy_to_npm:
name: Deploy to NPM (beta)
Expand All @@ -32,12 +31,12 @@ jobs:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write
id-token: write
environment:
name: beta
steps:
- uses: actions/checkout@v4
with:
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/[email protected]
Expand All @@ -49,14 +48,10 @@ jobs:
run: |
npm ci
- name: Semantic Release Dependency
run: |
npm install -g semantic-release
cd semantic-release
npm install
run: npm install -g @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/npm conventional-changelog-conventionalcommits semantic-release
- name: Publish Beta
env:
GITHUB_TOKEN: ${{ secrets.TOKENX }}
NPM_TOKEN: ${{ secrets.NPM_TOKENX }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKENX }}
run: semantic-release -e ./semantic-release/release.config.mjs

run: semantic-release
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
{
"name": "lightning-flow-scanner-core",
"version": "3.22.1",
"main": "out/**",
"main": "out/index.js",
"types": "index.d.ts",
"engines": {
"node": "^18 || ^20"
"node": "^18 || ^20 || ^22"
},
"scripts": {
"test": "TS_NODE_PROJECT=tsconfig.cjs.json mocha",
"build": "tsc -p tsconfig.cjs.json",
"prepare": "husky",
"precommit": "lint-staged",
"lint": "eslint src",
"prepack": "npm run build && npm run dist",
"prepack": "npm run build",
"rollup": "rollup --config",
"uglify": "uglifyjs dist/index.js --compress -o dist/index.min.js",
"dist": "npm run rollup && npm run uglify",
"test:coverage": "nyc npm test"
"test:coverage": "nyc npm test",
"postversion": "cp -r package.json .. && cp -r npm-shrinkwrap.json .."
},
"keywords": [],
"license": "MIT",
Expand All @@ -25,6 +26,9 @@
"type": "git",
"url": "git+https://github.com/Lightning-Flow-Scanner/lightning-flow-scanner-core.git"
},
"files": [
"out/**"
],
"devDependencies": {
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
Expand Down Expand Up @@ -54,5 +58,8 @@
"@types/path-browserify": "^1.0.2",
"path-browserify": "^1.0.1",
"xmlbuilder2": "^3.1.1"
},
"exports":{
"." :"./out/"
}
}
6 changes: 3 additions & 3 deletions semantic-release/release.config.mjs → release.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
branches: [
{
name: "master",
channel: "beta"
channel: "beta",
},
],
plugins: [
Expand All @@ -32,11 +32,11 @@ export default {
changelogFile: "CHANGELOG.md",
},
],
"@semantic-release/npm",
["@semantic-release/npm", { pkgRoot: "out" }],
[
"@semantic-release/git",
{
assets: ["package.json", "package-lock.json", "CHANGELOG.md"],
assets: ["package.json", "package-lock.json", "npm-shrinkwrap.json", "CHANGELOG.md"],
message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
},
],
Expand Down
Loading

0 comments on commit d2634f5

Please sign in to comment.