Skip to content

Commit

Permalink
bump version to trigger first npm deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeBu committed Jul 3, 2024
1 parent abdebf3 commit 448f2a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,27 @@ on:
- main

jobs:

test_lint:
runs-on: ubuntu-latest
if: ${{ !github.event.created && github.repository != 'garronej/ts-ci' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: bahmutov/npm-install@v1
- name: If this step fails run 'yarn lint' and 'yarn format' then commit again.
run: |
yarn lint:check
yarn format:check
test:
runs-on: ${{ matrix.os }}
needs: test_lint
strategy:
matrix:
node: [ '16', '17' ]
os: [ windows-latest, ubuntu-latest ]
node: [ '20', '22' ]
os: [ ubuntu-latest ]
name: Test with Node v${{ matrix.node }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: bahmutov/npm-install@v1
- run: yarn build
- run: yarn test
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm test

check_if_version_upgraded:
name: Check if version upgrade
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"name": "easy-lucia",
"version": "0.0.0",
"version": "0.0.1",
"description": "#{DESC}#",
"repository": {
"type": "git",
"url": "git://github.com/JeromeBu/easy-lucia.git"
},
"scripts": {
"typecheck": "tsc --noEmit",
"build": "tsc",
"build": "pnpm build:cjs && pnpm build:esm",
"build:cjs": "tsc",
"build:esm": "rm -rf dist/esm && tsc -p tsconfig.esm.json && js2mjs dist/esm",
"test": "vitest",
"lint:check": "eslint . --ext .ts,.tsx",
"lint": "npm run lint:check -- --fix",
Expand Down

0 comments on commit 448f2a9

Please sign in to comment.