Skip to content

Commit

Permalink
Pol Gubau; MW-
Browse files Browse the repository at this point in the history
  • Loading branch information
PolGubau committed Sep 13, 2024
1 parent 2e9fa48 commit a961460
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 35 deletions.
15 changes: 8 additions & 7 deletions .github/pol-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
cache: "pnpm"

- name: 📥 Install Dependencies
run: pnpm ui install
run: pnpm install

- name: 💅 Lint
run: pnpm ui lint
run: pnpm lint

- name: 🧪 Unit Tests and coverage
run: pnpm ui test
run: pnpm test

publish:
name: 🚀 Publish
Expand All @@ -43,11 +43,12 @@ jobs:
node-version: lts/*
always-auth: true
registry-url: "https://registry.npmjs.org"

- name: 💡 Install PNPM
run: npm install -g pnpm

- name: 📥 Install Dependencies
run: pnpm ui install
run: pnpm install

- name: setup git config
run: |
Expand All @@ -60,15 +61,15 @@ jobs:

- name: Update version in package.json
run: |
cd packages/ui
node -e "
let pkg = require('./package.json');
let pkg = require('./packages/ui/package.json');
let versionParts = pkg.version.split('.');
versionParts[2] = '${{ env.RUN_NUMBER }}';
pkg.version = versionParts.join('.');
require('fs').writeFileSync('./package.json', JSON.stringify(pkg, null, 2));
require('fs').writeFileSync('./packages/ui/package.json', JSON.stringify(pkg, null, 2));
"
shell: bash

- name: 🍀 Publish to NPM
run: |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
Expand Down
29 changes: 1 addition & 28 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"globalEnv": ["NODE_ENV"],
"pipeline": {
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
Expand All @@ -12,33 +12,6 @@
},
"start": {
"dependsOn": ["^build"]
},
"lint": {
"cache": false,
"outputs": []
},
"lint:fix": {
"cache": false,
"outputs": []
},
"format:check": {
"cache": false,
"outputs": []
},
"format:write": {
"cache": false,
"outputs": []
},
"typecheck": {},
"dev": {
"cache": false
},
"check": {
"cache": false
},
"test": {
"cache": false,
"outputs": []
}
}
}

0 comments on commit a961460

Please sign in to comment.