You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by su...@apache.org on 2023/04/20 06:15:24 UTC

[incubator-opendal] branch npm-publish-provenance created (now dec45fe5)

This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a change to branch npm-publish-provenance
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


      at dec45fe5 feat(bindings/nodejs): publish support `--provenance`

This branch includes the following new commits:

     new dec45fe5 feat(bindings/nodejs): publish support `--provenance`

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-opendal] 01/01: feat(bindings/nodejs): publish support `--provenance`

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a commit to branch npm-publish-provenance
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit dec45fe5f956f43400feedd4ff29dc06b1f0f7c1
Author: suyanhanx <su...@gmail.com>
AuthorDate: Thu Apr 20 14:14:49 2023 +0800

    feat(bindings/nodejs): publish support `--provenance`
    
    Signed-off-by: suyanhanx <su...@gmail.com>
---
 .github/workflows/bindings_nodejs.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/bindings_nodejs.yml b/.github/workflows/bindings_nodejs.yml
index 21d662b6..c5afbf1e 100644
--- a/.github/workflows/bindings_nodejs.yml
+++ b/.github/workflows/bindings_nodejs.yml
@@ -206,6 +206,8 @@ jobs:
     runs-on: ubuntu-latest
     if: "startsWith(github.ref, 'refs/tags/')"
     needs: [macos, linux, windows]
+    permissions:
+      id-token: write
 
     # Notes: this defaults only apply on run tasks.
     defaults:
@@ -244,7 +246,7 @@ jobs:
       - name: Publish
         run: |
           echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
-          npm publish --access public
+          npm publish --access public --provenance
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           NPM_TOKEN: ${{ secrets.NPM_TOKEN }}