Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 23 additions & 28 deletions .github/workflows/publish-tag.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Release Pipeline
name: Publish custom tag

on:
# Allows triggering the workflow manually
workflow_dispatch:
inputs:
provider_version:
version:
description: "Build and publish to NPM"
required: false
default: "v0.17.4-test.1"

required: true
default: "3.9.0"
tag:
description: "Tag to apply to the release"
required: true
default: "test.1"

# We're going to interact with GH from the pipelines, so we need to get some permissions
permissions:
Expand All @@ -33,34 +36,26 @@ jobs:
uses: actions/setup-node@v4
with:
# Semantic release requires this as bare minimum
node-version: 20

# Why this? https://github.com/npm/cli/issues/7279
# Why this way? https://github.com/actions/setup-node/issues/213
- name: Install latest npm
shell: bash
run: |
npm install -g npm@latest &&
npm --version &&
npm list -g --depth 0
node-version: 24

- name: Install dependencies
run: npm install

- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Setup npm auth
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Set version to ${{ github.event.inputs.version }}-${{ github.event.inputs.tag }}
run: |
set -x
npm version ${{ github.event.inputs.version }}-${{ github.event.inputs.tag }} --no-git-tag-version

- name: Build the SDK for release
run: npm run build
run: |
npm run build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to NPM - ${{ github.event.inputs.version }}
run: |
npm version ${{ github.event.inputs.version }} --no-git-tag-version
npm build
npm publish
git tag v${{ github.event.inputs.version }}
git push
git push --tags
npm publish --tag ${{ github.event.inputs.tag }}
Empty file modified .husky/commit-msg
100755 → 100644
Empty file.
Empty file modified .husky/pre-commit
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@golem-sdk/golem-js",
"version": "0.8.0",
"version": "3.9.0",
"description": "NodeJS and WebBrowser SDK for building apps running on Golem Network",
"repository": "https://github.com/golemfactory/golem-js",
"keywords": [
Expand Down