Skip to content

Commit

Permalink
feat(chore): move from npm to yarn
Browse files Browse the repository at this point in the history
Moving the project to yarn instead of npm.

Why?
These days yarn is used more often as it is faster then npm at package resolution in turn reducing the time spent setting up the dev environment. It also resolves packages better and because of this it can reduce disk space used.
  • Loading branch information
y0hami authored Mar 28, 2022
1 parent 2041305 commit 377dad4
Show file tree
Hide file tree
Showing 6 changed files with 4,626 additions and 15,501 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
- name: pre-install
run: sh ./scripts/preinstall.sh
- name: install dependencies
run: npm install --ignore-scripts
run: yarn
- name: pre fomantic install & gulp build
run: npx gulp install
run: yarn gulp install
17 changes: 10 additions & 7 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,32 @@ jobs:
if: github.repository == 'fomantic/Fomantic-UI'
outputs:
shouldPublish: ${{ steps.nightly-version.outputs.shouldPublish }}
publishVersion: ${{ steps.nightly-version.outputs.publishVersion }}
steps:
- uses: actions/checkout@v2
with:
ref: develop
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
registry-url: https://registry.npmjs.org/
- name: pre-setup
run: sh ./scripts/preinstall.sh
- name: install dependencies
run: npm install --ignore-scripts
run: yarn
- name: update nightly version
id: nightly-version
run: node ./scripts/nightly-version.js
- name: fomantic install & build
if: ${{ steps.nightly-version.outputs.shouldPublish }}
run: npx gulp install
run: yarn gulp install
- name: publish to npm
if: ${{ steps.nightly-version.outputs.shouldPublish }}
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm publish --tag nightly
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION}}
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION }}
PUBLISH_VERSION: ${{ steps.nightly-version.outputs.version }}
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
yarn config set registry https://registry.npmjs.org
yarn publish --tag nightly --new-version $PUBLISH_VERSION --non-interactive
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ jobs:
- name: pre-setup
run: sh ./scripts/preinstall.sh
- name: install dependencies
run: npm install --ignore-scripts
run: yarn
- name: fomantic install & build
run: npx gulp install
run: yarn gulp install
- name: publish to npm
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION}}
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION }}
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
yarn config set registry https://registry.npmjs.org
yarn publish --non-interactive
Loading

0 comments on commit 377dad4

Please sign in to comment.