Skip to content

Conversation

@stainless-app
Copy link
Contributor

@stainless-app stainless-app bot commented Jul 22, 2025

Automated Release PR

0.1.0-alpha.2 (2025-07-22)

Full Changelog: v0.1.0-alpha.1...v0.1.0-alpha.2

Chores


This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions

@semanticdiff-com
Copy link

semanticdiff-com bot commented Jul 22, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  tests/api-resources/nodes.test.ts  59% smaller
  tests/api-resources/vms/script.test.ts  59% smaller
  tests/api-resources/vms/vms.test.ts  59% smaller
  tests/stringifyQuery.test.ts  59% smaller
  package.json  52% smaller
  tsconfig.json  47% smaller
  tsconfig.build.json  47% smaller
  tests/index.test.ts  43% smaller
  .stats.yml  29% smaller
  jest.config.ts  18% smaller
  .github/workflows/publish-npm.yml  0% smaller
  .github/workflows/release-doctor.yml  0% smaller
  .release-please-manifest.json  0% smaller
  CHANGELOG.md Unsupported file format
  CONTRIBUTING.md Unsupported file format
  README.md Unsupported file format
  bin/check-release-environment Unsupported file format
  eslint.config.mjs  0% smaller
  scripts/build Unsupported file format
  src/version.ts  0% smaller
  tests/base64.test.ts  0% smaller
  tests/buildHeaders.test.ts  0% smaller
  tests/form.test.ts  0% smaller
  tests/path.test.ts  0% smaller
  tests/uploads.test.ts  0% smaller

@stainless-app
Copy link
Contributor Author

stainless-app bot commented Jul 22, 2025

🧪 Testing

To try out this version of the SDK, run:

npm install 'https://pkg.stainless.com/s/sfc-nodes-typescript/e86ce752ac70d378b9f5afc52fb86dcd0142b3a1/dist.tar.gz'

Expires: Thu, 21 Aug 2025 05:18:12 GMT

Comment on lines +13 to +32
name: publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: |
yarn install

- name: Publish to NPM
run: |
bash ./bin/publish-npm
env:
NPM_TOKEN: ${{ secrets.SFC_NODES_NPM_TOKEN || secrets.NPM_TOKEN }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 5 months ago

To fix the problem, add a permissions block to the workflow to explicitly specify the minimal access required for the GITHUB_TOKEN. Based on the workflow tasks, it likely only requires contents: read to check out the repository code and packages: write to publish to NPM. This should be added at the root of the workflow to apply to all jobs unless overridden by job-specific permissions.

Suggested changeset 1
.github/workflows/publish-npm.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml
--- a/.github/workflows/publish-npm.yml
+++ b/.github/workflows/publish-npm.yml
@@ -2,6 +2,9 @@
 # It can also be run manually to re-publish to NPM in case it failed for some reason.
 # You can run this workflow by navigating to https://www.github.com/sfcompute/nodes-typescript/actions/workflows/publish-npm.yml
 name: Publish NPM
+permissions:
+  contents: read
+  packages: write
 on:
   workflow_dispatch:
 
EOF
@@ -2,6 +2,9 @@
# It can also be run manually to re-publish to NPM in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/sfcompute/nodes-typescript/actions/workflows/publish-npm.yml
name: Publish NPM
permissions:
contents: read
packages: write
on:
workflow_dispatch:

Copilot is powered by AI and may make mistakes. Always verify output.
@sigmachirality sigmachirality merged commit 55eaacd into main Jul 22, 2025
10 checks passed
@stainless-app
Copy link
Contributor Author

stainless-app bot commented Jul 22, 2025

@stainless-app stainless-app bot deleted the release-please--branches--main--changes--next--components--nodes-sdk-alpha branch July 22, 2025 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants