Skip to content

Commit

Permalink
(chore) Downgrade yarn to fix publishing problems (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen authored Oct 2, 2023
1 parent c3605bc commit 1fc39ee
Show file tree
Hide file tree
Showing 6 changed files with 147,394 additions and 900 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --immutable
run: yarn install --frozen-lockfile

- name: Setup a local cache server for Turborepo
uses: felixmosh/turborepo-gh-artifacts@v2
Expand Down Expand Up @@ -71,10 +71,10 @@ jobs:

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --immutable
run: yarn install --frozen-lockfile

- name: Version
run: yarn version "$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-pre.${{ github.run_number }}"
run: export NEW_VERSION="$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-pre.${{ github.run_number }}" && yarn version --new-version $NEW_VERSION --no-git-tag-version && cd projects/ngx-formentry && yarn version --new-version $NEW_VERSION --no-git-tag-version

- name: Build
run: yarn turbo build:lib --color --concurrency=5
Expand All @@ -83,10 +83,7 @@ jobs:
- run: git add . && git commit -m "Prerelease version" --no-verify

- name: Publish pre-release
run: |
yarn config set npmAlwaysAuth true
yarn config set npmAuthToken $NPM_AUTH_TOKEN
yarn npm publish --access public --tag next
run: yarn publish dist/ngx-formentry --tag next --access public
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

Expand Down Expand Up @@ -118,12 +115,10 @@ jobs:

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --immutable
run: yarn install --frozen-lockfile

- name: Build
run: yarn turbo build:lib --color --concurrency=5

- name: Publish release
run: |
yarn config set npmAuthToken $NPM_AUTH_TOKEN
yarn npm publish --access public --tag latest
run: yarn publish dist/ngx-formentry --tag latest --access public
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,3 @@ Thumbs.db
./package-lock.json

.turbo

# Yarn 3
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
Loading

0 comments on commit 1fc39ee

Please sign in to comment.