Skip to content

Commit

Permalink
build: disable publish-npm job
Browse files Browse the repository at this point in the history
This repo does not publish anything to npm
  • Loading branch information
matijs committed May 31, 2024
1 parent f77e7c8 commit 839225d
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,49 +135,49 @@ jobs:
id: deploy-pages
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

publish-npm:
runs-on: ubuntu-latest
needs: [lint, test]
if: github.ref == 'refs/heads/main'

steps:
- name: Checkout release branch
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
token: ${{ secrets.GH_TOKEN }}

- name: Install pnpm package manager
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0

- name: Set up Node.js version
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: .nvmrc
cache: pnpm

- name: "Continuous Deployment: install"
run: |
pnpm install --frozen-lockfile
pnpm ls --recursive
- name: "Continuous Deployment: build"
run: pnpm run --if-present build

- name: "Continuous Deployment: publish to GitHub repository"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_AUTHOR_NAME: "NL Design System"
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: "NL Design System"
run: |
git push --set-upstream origin HEAD
pnpm run release
- name: "Continuous Deployment: publish to npm"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
pnpm run publish
pnpm config delete "//registry.npmjs.org/:_authToken"
# publish-npm:
# runs-on: ubuntu-latest
# needs: [lint, test]
# if: github.ref == 'refs/heads/main'
#
# steps:
# - name: Checkout release branch
# uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
# with:
# token: ${{ secrets.GH_TOKEN }}
#
# - name: Install pnpm package manager
# uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
#
# - name: Set up Node.js version
# uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
# with:
# node-version-file: .nvmrc
# cache: pnpm
#
# - name: "Continuous Deployment: install"
# run: |
# pnpm install --frozen-lockfile
# pnpm ls --recursive
#
# - name: "Continuous Deployment: build"
# run: pnpm run --if-present build
#
# - name: "Continuous Deployment: publish to GitHub repository"
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
# GIT_AUTHOR_NAME: "NL Design System"
# GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
# GIT_COMMITTER_NAME: "NL Design System"
# run: |
# git push --set-upstream origin HEAD
# pnpm run release
#
# - name: "Continuous Deployment: publish to npm"
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: |
# pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
# pnpm run publish
# pnpm config delete "//registry.npmjs.org/:_authToken"

0 comments on commit 839225d

Please sign in to comment.