From 911b689db6ec54888cf40e52b39ded35fccf7e9f Mon Sep 17 00:00:00 2001 From: Alan Bridgeman Date: Wed, 11 Jun 2025 13:03:48 -0500 Subject: [PATCH 1/3] Made changes mostly to automation to try to get it to work --- .forgejo/workflows/publish.yml | 26 +++++++++++++++++++++++++- package.json | 2 +- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index da68dc1..5974135 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -16,7 +16,7 @@ permissions: jobs: # Publishes the package to the private NPM registry publish: - runs-on: self-hosted + runs-on: default outputs: build_and_deploy: ${{ steps.version_check.outputs.build_and_deploy }} steps: @@ -24,6 +24,30 @@ jobs: with: fetch-depth: 0 + # Set up Node.js + - name: Set up Node.js version + uses: actions/setup-node@v3 + with: + # Taken from [Repo README](https://github.com/actions/setup-node#readme) + # + # > Version Spec of the version to use in SemVer notation. + # > It also admits such aliases as lts/*, latest, nightly and canary builds + # > Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node + node-version: 'latest' + + # Taken from [Repo README](https://github.com/actions/setup-node#readme) + # + # > Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, + # > and set up auth to read in from env.NODE_AUTH_TOKEN. + # > Default: '' + registry-url: 'https://npm.pkg.bridgemanaccessible.ca' + + # Taken from [Repo README](https://github.com/actions/setup-node#readme) + # + # > Optional scope for authenticating against scoped registries. + # > Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/). + scope: '@BridgemanAccessible' + # Check if this is a "significant" commit that should trigger a new publish # This is done by checking if the latest git tag matches the version in the `package.json` file - name: Version Check diff --git a/package.json b/package.json index aee176c..5537983 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@BridgemanAccessible/listmonk-node-client", - "version": "1.0.1", + "version": "1.0.2", "description": "A Node client library for Listmonk", "repository": "https://git.bridgemanaccessible.ca/Bridgeman-Accessible/listmonk-nodejs-client.git", "author": "Bridgeman Accessible", From 48db1bb21bb809cd23d42828d23e92837561d1a8 Mon Sep 17 00:00:00 2001 From: Alan Bridgeman Date: Wed, 11 Jun 2025 13:20:01 -0500 Subject: [PATCH 2/3] More automation work --- .forgejo/workflows/publish.yml | 18 ++++++++++++++++++ package.json | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index 5974135..2c02bfe 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -48,6 +48,24 @@ jobs: # > Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/). scope: '@BridgemanAccessible' + # Install dependencies + - name: Install Dependencies + run: | + # Install Yarn globally + npm install -g yarn + + # Not necessarily needed but keeping track of the current directory (so that we can return to it is just a good practice) + CURR_DIR="$PWD" + + # Change into the repository directory + cd "$GITHUB_WORKSPACE" + + # Install dependencies using Yarn + yarn install --frozen-lockfile + + # Return to the original directory + cd "$CURR_DIR" + # Check if this is a "significant" commit that should trigger a new publish # This is done by checking if the latest git tag matches the version in the `package.json` file - name: Version Check diff --git a/package.json b/package.json index 5537983..f21e6bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@BridgemanAccessible/listmonk-node-client", - "version": "1.0.2", + "version": "1.0.3", "description": "A Node client library for Listmonk", "repository": "https://git.bridgemanaccessible.ca/Bridgeman-Accessible/listmonk-nodejs-client.git", "author": "Bridgeman Accessible", From adc9ce9ba917ec8e591445e6c0fb48b50671cd7a Mon Sep 17 00:00:00 2001 From: Alan Bridgeman Date: Wed, 11 Jun 2025 13:32:10 -0500 Subject: [PATCH 3/3] Bumping version to attempt to trigger automation (which will hopefully work this time) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f21e6bb..14d628d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@BridgemanAccessible/listmonk-node-client", - "version": "1.0.3", + "version": "1.0.4", "description": "A Node client library for Listmonk", "repository": "https://git.bridgemanaccessible.ca/Bridgeman-Accessible/listmonk-nodejs-client.git", "author": "Bridgeman Accessible",