Skip to content

Commit 7de67fb

Browse files
authored
Merge branch 'master' into scx1332/custom-constraints
2 parents 134dbf5 + 12a22e8 commit 7de67fb

File tree

6 files changed

+33
-37
lines changed

6 files changed

+33
-37
lines changed

.github/workflows/publish-tag.yml

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1-
name: Release Pipeline
1+
name: Publish Test Version
22

33
on:
44
# Allows triggering the workflow manually
55
workflow_dispatch:
66
inputs:
7-
provider_version:
7+
version:
88
description: "Build and publish to NPM"
9-
required: false
10-
default: "v0.17.4-test.1"
9+
required: true
10+
default: "3.9.0"
11+
tag:
12+
description: "Tag to apply to the release"
13+
required: true
14+
default: "test.1"
1115

1216
# We're going to interact with GH from the pipelines, so we need to get some permissions
1317
permissions:
1418
contents: read # for checkout
1519

1620
jobs:
1721
release:
18-
name: Release the SDK to NPM and GitHub
22+
name: Build and Publish ${{ github.event.inputs.version }}-${{ github.event.inputs.tag }}
1923
runs-on: ubuntu-latest
2024
permissions:
2125
contents: write # to be able to publish a GitHub release
@@ -32,34 +36,26 @@ jobs:
3236
uses: actions/setup-node@v4
3337
with:
3438
# Semantic release requires this as bare minimum
35-
node-version: 20
36-
37-
# Why this? https://github.com/npm/cli/issues/7279
38-
# Why this way? https://github.com/actions/setup-node/issues/213
39-
- name: Install latest npm
40-
shell: bash
41-
run: |
42-
npm install -g npm@latest &&
43-
npm --version &&
44-
npm list -g --depth 0
39+
node-version: 24
4540

4641
- name: Install dependencies
4742
run: npm install
4843

49-
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
50-
run: npm audit signatures
44+
- name: Setup npm auth
45+
run: |
46+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
47+
env:
48+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
50+
- name: Set version to ${{ github.event.inputs.version }}-${{ github.event.inputs.tag }}
51+
run: |
52+
set -x
53+
npm version ${{ github.event.inputs.version }}-${{ github.event.inputs.tag }} --no-git-tag-version
5154
5255
- name: Build the SDK for release
53-
run: npm run build
56+
run: |
57+
npm run build
5458
55-
- name: Release
56-
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
59+
- name: Publish to NPM - ${{ github.event.inputs.version }}-${{ github.event.inputs.tag }}
5960
run: |
60-
npm version ${{ github.event.inputs.version }} --no-git-tag-version
61-
npm build
62-
npm publish
63-
git tag v${{ github.event.inputs.version }}
64-
git push
65-
git push --tags
61+
npm publish --tag ${{ github.event.inputs.tag }}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ on:
2121
provider_version:
2222
description: "Provider version (e.g., v0.15.0 or pre-rel-v0.15.1)"
2323
required: false
24-
default: "v0.17.4"
24+
default: "v0.17.6"
2525
requestor_version:
2626
description: "Requestor version (e.g., v0.15.0 or pre-rel-v0.15.1)"
2727
required: false
28-
default: "v0.17.4"
28+
default: "v0.17.6"
2929
provider_wasi_version:
3030
description: "Provider WASI version (e.g., v0.2.2)"
3131
required: false
@@ -44,8 +44,8 @@ permissions:
4444
contents: read # for checkout
4545

4646
env:
47-
PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'v0.17.4' }}
48-
REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'v0.17.4' }}
47+
PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'v0.17.6' }}
48+
REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'v0.17.6' }}
4949
PROVIDER_WASI_VERSION: ${{ github.event.inputs.provider_wasi_version || 'v0.2.2' }}
5050
PROVIDER_VM_VERSION: ${{ github.event.inputs.provider_vm_version || 'v0.5.3' }}
5151
PAYMENT_NETWORK: ${{ github.event.inputs.payment_network || 'hoodi' }}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@golem-sdk/golem-js",
3-
"version": "0.8.0",
3+
"version": "3.9.0",
44
"description": "NodeJS and WebBrowser SDK for building apps running on Golem Network",
55
"repository": "https://github.com/golemfactory/golem-js",
66
"keywords": [

tests/docker/Provider.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG UBUNTU_VERSION=22.04
2-
ARG YA_CORE_PROVIDER_VERSION=v0.17.4
2+
ARG YA_CORE_PROVIDER_VERSION=v0.17.6
33
ARG YA_WASI_VERSION=v0.2.2
44
ARG YA_VM_VERSION=v0.5.3
55

tests/docker/Requestor.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG UBUNTU_VERSION=22.04
2-
ARG YA_CORE_REQUESTOR_VERSION=v0.17.4
2+
ARG YA_CORE_REQUESTOR_VERSION=v0.17.6
33

44
FROM node:22
55
ARG YA_CORE_REQUESTOR_VERSION

0 commit comments

Comments
 (0)