From d4f4c3fe5e22cf12db96f0cd4a9c292277e6364c Mon Sep 17 00:00:00 2001 From: Robert Boros Date: Tue, 25 Jul 2023 13:26:21 +0200 Subject: [PATCH] use older config --- .github/workflows/release.yml | 53 +++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b340754..4bfe0c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,33 +1,38 @@ name: Release on: - push: - branches: - - 'main' + push: + branches: + - 'main' jobs: - release: - name: Release - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v3 - with: - # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits - fetch-depth: 0 + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + with: + # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits + fetch-depth: 0 - - name: Setup Node.js 18.x - uses: actions/setup-node@v3 - with: - node-version: 18.x + - name: Setup Node.js 18.x + uses: actions/setup-node@v2 + with: + node-version: 18.x - - name: Install dependencies - run: npm install --frozen-lockfile --prefer-offline --ignore-scripts + - name: Install dependencies + run: npm install --frozen-lockfile --prefer-offline --ignore-scripts - - name: Build - run: npm run build + - name: Build + run: | + npm run build - - name: Publish package to registry - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Publish package to registry + run: | + cat << EOF > "$HOME/.npmrc" + //registry.npmjs.org/:_authToken=$NPM_TOKEN + EOF + npm publish + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}