Skip to content

Commit

Permalink
docs: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding-SE committed Dec 12, 2023
1 parent 3c1c523 commit 27ebe1e
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/publish-npm-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ jobs:
- name: Run pnpm install dependencies
run: pnpm install

# - name: Build Library
# run: pnpm bundle
- name: Build Library
run: pnpm bundle

# - name: Archive common build artifacts
# if: ${{ inputs.dryrun != true }}
Expand Down Expand Up @@ -100,42 +100,42 @@ jobs:
- name: Version Type - ${{ env.LERNA_VERSION_TYPE }}
run: echo "${{ env.LERNA_VERSION_QUERY }}"

# - name: Lerna Version 🏷️
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# NPM_CONFIG_PROVENANCE: true
# run: |
# git config --global user.name "${{ github.actor }}"
# git config --global user.email "${{ github.actor }}@users.noreply.github.com"
# pnpm whoami
# pnpm exec ${{ env.LERNA_VERSION_QUERY }}

# - name: OTP
# if: ${{ inputs.dryrun != true }}
# uses: step-security/wait-for-secrets@v1
# id: wait-for-secrets
# with:
# secrets: |
# OTP:
# name: 'OTP to publish package'
# description: 'OTP from authenticator app'
- name: Lerna Version 🏷️
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
pnpm whoami
pnpm exec ${{ env.LERNA_VERSION_QUERY }}
- name: OTP
if: ${{ inputs.dryrun != true }}
uses: step-security/wait-for-secrets@v1
id: wait-for-secrets
with:
secrets: |
OTP:
name: 'OTP to publish package'
description: 'OTP from authenticator app'
- name: Lerna Publish 📦
if: ${{ inputs.dryrun != true }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
pnpm exec lerna publish from-package --force-publish --yes --otp ${{ steps.wait-for-secrets.outputs.OTP }}
# - name: Lerna Publish 📦
# if: ${{ inputs.dryrun != true }}
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# NPM_CONFIG_PROVENANCE: true
# run: |
# pnpm exec lerna publish from-package --force-publish --yes --otp ${{ steps.wait-for-secrets.outputs.OTP }}

# - name: Website Dev Build
# run: pnpm build:dev

# - name: Deploy to gh-pages
# if: github.ref == 'refs/heads/master'
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./website
- name: Website Dev Build
run: pnpm build:dev

- name: Deploy to gh-pages
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website

0 comments on commit 27ebe1e

Please sign in to comment.