Explorar o código

fixup! meta: add release automations (#3304)

Antoine du Hamel %!s(int64=3) %!d(string=hai) anos
pai
achega
74dae42fc8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      .github/workflows/release.yml

+ 2 - 2
.github/workflows/release.yml

@@ -29,10 +29,10 @@ jobs:
         run: git --no-pager diff HEAD^ -- CHANGELOG.md | awk '{ if( substr($0,0,1) == "+" && $1 != "+##" && $1 != "+Released:" && $1 != "+++" ) { print substr($0,2) } }' > CHANGELOG.diff.md
       - name: Build before publishing
         run: corepack yarn run build
+      - name: Login to NPM
+        run: corepack yarn config set npmAuthToken ${{ toJSON(secrets.NPM_TOKEN) }}
       - name: Publish to NPM
         run: corepack yarn workspaces foreach --no-private npm publish --access public --tolerate-republish
-        env:
-          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
       - name: Merge PR
         id: merge
         run: |