From bd2e3ee447c4fe2d8d205ae76a2040ed37faa88e Mon Sep 17 00:00:00 2001 From: Sarabveer Singh Date: Sun, 3 Dec 2023 12:03:42 -0500 Subject: [PATCH] chore: #release --- .github/workflows/release.yml | 20 ++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6adec8dd2..9bb3f5a4e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,26 @@ on: branches: [ main ] jobs: + build-pkg: + if: "contains(github.event.head_commit.message, '#release')" + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + # Setup .npmrc file to publish to GitHub Packages + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + registry-url: 'https://npm.pkg.github.com' + # Defaults to the user or organization that owns the workflow file + scope: '@gurbaninow' + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + build-mariadb: if: "contains(github.event.head_commit.message, '#release')" runs-on: ubuntu-latest diff --git a/package-lock.json b/package-lock.json index 478fe6c70..7369877a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gurbaninow/database", - "version": "4.7.0", + "version": "5.0.0-beta", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gurbaninow/database", - "version": "4.7.0", + "version": "5.0.0-beta", "license": "GPL-3.0", "dependencies": { "anyid": "^1", diff --git a/package.json b/package.json index 824d73092..94c3baca7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gurbaninow/database", - "version": "4.7.0", + "version": "5.0.0-beta", "description": "The open gurbani database containing an evolving set of corrections. Used in Shabad OS software.", "scripts": { "import": "node lib/import.js",