Skip to content

Commit

Permalink
chore: refactor ci
Browse files Browse the repository at this point in the history
  • Loading branch information
paolofacchinetti committed May 17, 2024
1 parent 8d762cc commit a4f0f81
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 70 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,21 @@ jobs:
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: |
cd packages/ketchup
node scripts/k-npm-snapshot.js
cd ../ketchup-react
node scripts/kr-npm-snapshot.js
cd ../..
yarn install --no-immutable
npm run k:build

- name: Install dependencies
run: yarn install --no-immutable

- name: Update Version with Timestamp
run: |
VERSION=$(node -p "require('./package.json').version")
TIMESTAMP=$(date +%Y%m%d%H%M%S)
NEW_VERSION="${VERSION}-${TIMESTAMP}"
echo "New version: $NEW_VERSION"
sed -i "s/\"version\": \"$VERSION\"/\"version\": \"$NEW_VERSION\"/"./package.json
- name: Run Ketchup build
run: npm run k:build

# - run: npm run publish:snapshot
# env:
# NODE_AUTH_TOKEN: {{ secrets.NPM_TOKEN }}
31 changes: 0 additions & 31 deletions packages/ketchup-react/scripts/kr-npm-snapshot.js

This file was deleted.

31 changes: 0 additions & 31 deletions packages/ketchup/scripts/k-npm-snapshot.js

This file was deleted.

0 comments on commit a4f0f81

Please sign in to comment.