From 7bc25cb8c0687aa71992079195670efb4c5a22af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Javier=20Rib=C3=B3?= Date: Sat, 30 Sep 2023 19:54:46 +0200 Subject: [PATCH] fix --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ CHANGELOG.md | 0 package.json | 3 +-- release.config.cjs | 13 +++++++++++++ 4 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 CHANGELOG.md create mode 100644 release.config.cjs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..a951dd1f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release + +on: + push: + branches: + - main # adjust this to your main development branch if it's not "main" + workflow_dispatch: # this allows for manual triggering + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' # adjust this to your project's Node.js version + + - name: Install Dependencies + run: npm ci # or use "npm install" if you don't have a lock file + + - name: Test + run: npm test # adjust this to your project's test command + + - name: Semantic Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..e69de29b diff --git a/package.json b/package.json index 336ed30d..eb9ecf41 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,10 @@ { - "name": "prism-pluto-encrypted", + "name": "@djack-p2p/pluto-encrypted", "version": "0.0.1", "description": "Contains an [Atala Prism Wallet SDK Pluto](https://input-output-hk.github.io/atala-prism-wallet-sdk-ts/interfaces/Domain.Pluto.html) implementation using Dexie and Dexie Encrypted.", "main": "./build/index.js", "types": "./build/index.d.ts", "type": "module", - "private": "true", "scripts": { "postinstall": "cd sdk && npm i && npm run build", "clean": "rm -rf build", diff --git a/release.config.cjs b/release.config.cjs new file mode 100644 index 00000000..6da1b359 --- /dev/null +++ b/release.config.cjs @@ -0,0 +1,13 @@ +/** + * @type {import('semantic-release').GlobalConfig} + */ +module.exports = { + branches: ["main"], + plugins: [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/changelog", + "@semantic-release/npm", + "@semantic-release/github", + ], +};