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
34 changes: 0 additions & 34 deletions .github/workflows/npm-publish.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Publish package to npmjs registry
on:
release:
types: [published]

jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event.release.tag_name }}
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: 24
registry-url: https://registry.npmjs.org/
cache: 'npm'
- name: Check the release tag matches package.json
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
PKG_VERSION="v$(node -p "require('./package.json').version")"
if [ "$RELEASE_TAG" != "$PKG_VERSION" ]; then
echo "::error::release tag $RELEASE_TAG does not match package.json version $PKG_VERSION"
exit 1
fi
- run: npm ci
- name: Update npm
run: npm install -g npm@latest
- name: Release
run: npm publish --access public --tag ${{ github.event.release.prerelease && 'beta' || 'latest' }}

publish-github:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event.release.tag_name }}
persist-credentials: false
- uses: actions/setup-node@v7
with:
node-version: 24
registry-url: https://npm.pkg.github.com/
cache: 'npm'
- name: Check the release tag matches package.json
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
PKG_VERSION="v$(node -p "require('./package.json').version")"
if [ "$RELEASE_TAG" != "$PKG_VERSION" ]; then
echo "::error::release tag $RELEASE_TAG does not match package.json version $PKG_VERSION"
exit 1
fi
- run: npm ci
- name: Update npm
run: npm install -g npm@latest
- name: Release
run: npm publish --tag ${{ github.event.release.prerelease && 'beta' || 'latest' }}
env:
NODE_AUTH_TOKEN: ${{ github.token }}
3 changes: 3 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ jobs:
build-test:
name: Build & Test
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write # the coverage report posts a PR comment
steps:
- uses: actions/checkout@v2 # checkout the repo
- uses: actions/setup-node@v3
Expand Down
6 changes: 4 additions & 2 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
threshold: medium
fileignoreconfig:
- filename: package-lock.json
ignore_detectors:
- filecontent
- base64content
- filename: .github/workflows/secrets-scan.yml
ignore_detectors:
- filecontent
- filename: test/unit/mock/execution-mock.js
checksum: 89d239d37c9d8d0cdb6ac61553a7d2e2d9115a10207f7c0b387c3565c9cb6564
- filename: package-lock.json
checksum: b4458dbcb7bedc106b1abb2550db2d308f906ff344bc050ac78627adf48d4223
- filename: docdash-template/fixtures/documents/probe.js
checksum: e841ecf889d0e82367c53c48ee0b3be8bd68d7babf4777a87ced769f29686ac4
- filename: docdash-template/.travis.yml
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [v1.5.5](https://github.com/contentstack/contentstack-marketplace-sdk/tree/v1.5.5) (2026-10-24)
- Fix snyk issues
- Publish to npm with OIDC trusted publishing

## [v1.5.4](https://github.com/contentstack/contentstack-marketplace-sdk/tree/v1.5.4) (2026-06-29)
- Fix snyk issues

Expand Down
Loading
Loading