Skip to content

Commit

Permalink
Switch to PNPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Antony1060 committed Aug 4, 2023
1 parent 05ed990 commit 1e6eb24
Show file tree
Hide file tree
Showing 4 changed files with 3,879 additions and 3,590 deletions.
36 changes: 28 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Setup PNPM
uses: pnpm/[email protected]
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn
run_install: false
standalone: true
package_json_file: blog/package.json
version: 8

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 19
cache: pnpm

- name: Install
run: pnpm install

- name: Build
run: yarn build
run: pnpm build

- name: Version
run: yarn version --new-version "${GITHUB_REF:11}" --no-git-tag-version
- run: yarn pub
run: pnpm version --new-version "${GITHUB_REF:11}" --allow-same-version --no-git-tag-version

- run: pnpm pub --tag next
if: ${{ contains(github.ref, '-') }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: pnpm pub
if: ${{ !contains(github.ref, '-') }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/lvkdotsh/scyllo.git"
"url": "https://github.com/v3xlabs/scyllo.git"
},
"author": "Lucemans <[email protected]>",
"files": [
Expand Down Expand Up @@ -37,10 +37,10 @@
"typescript-eslint": "^0.0.1-alpha.0"
},
"scripts": {
"test": "yarn build && jest --verbose",
"test": "pnpm build && jest --verbose",
"build": "tsc",
"lint": "eslint -c .eslintrc.json --ext .ts ./src",
"pub": "yarn build && yarn publish --access public"
"pub": "pnpm build && pnpm publish --access public --no-git-checks"
},
"dependencies": {
"@lvksh/logger": "^1.6.3",
Expand Down
Loading

0 comments on commit 1e6eb24

Please sign in to comment.