Skip to content

Commit

Permalink
Update issue1137.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mahalakshmi-rekadi authored Oct 11, 2024
1 parent 68fd28d commit f6af252
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/issue1137.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
name: Release (Private Packages)
on:
push:
branches:
- master
paths:
- ".changeset/**"
- ".github/workflows/packages-release.yml"
workflow_dispatch:
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
version_or_release:
name: 'Version and open PR (or) release private packages'
timeout-minutes: 15
runs-on: ubuntu-latest
environment: 'Production - Private Packages'
steps:
- name: checkout code repository
uses: actions/checkout@v3
Expand All @@ -25,9 +36,27 @@ jobs:
run: pnpm config get store-dir
- name: install dependencies
run: pnpm install --frozen-lockfile



- name: setup npmrc file to configure pnpm
run: |
cat << EOF > "$HOME/.npmrc"
@mycompany:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=\${{ secrets.NPM_PUBLISH_TOKEN }}
//registry.npmjs.org/:_authToken=null
EOF
env:
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
HOME: ${{ github.workspace }}
- name: create and publish versions
uses: changesets/action@v1
with:
cwd: ${{ github.workspace }}
version: pnpm run version
commit: "chore: update package versions"
title: "Release (Private Packages)"
publish: pnpm run publish:ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOME: ${{ github.workspace }}



Expand Down

0 comments on commit f6af252

Please sign in to comment.