Skip to content

Commit

Permalink
chore: add release
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Apr 12, 2023
1 parent 0ec8df7 commit 1f4f0ac
Show file tree
Hide file tree
Showing 4 changed files with 1,035 additions and 3 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_ADMIN_TOKEN }}

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Setup Git
run: |
git config --local user.name "Artem Zakharchenko"
git config --local user.email "kettanaito@gmail.com"
- uses: pnpm/action-setup@v2
with:
version: 7.12
Expand All @@ -32,4 +40,11 @@ jobs:
run: pnpm test:node

- name: Browser tests
run: pnpm test:browser
run: pnpm test:browser

- name: Release
if: github.ref == 'refs/heads/main'
run: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions ossjs.release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
script: 'pnpm publish --no-git-checks'
}
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "logger",
"name": "@open-draft/logger",
"version": "0.0.0",
"description": "Environment-agnostic, ESM-friendly logger for simple needs.",
"main": "./lib/node/index.js",
Expand All @@ -24,7 +24,8 @@
"build": "tsup",
"test": "pnpm test:node && pnpm test:browser",
"test:node": "vitest run",
"test:browser": "playwright test"
"test:browser": "playwright test",
"release": "release publish"
},
"keywords": [
"log",
Expand All @@ -33,9 +34,13 @@
"universal",
"tiny"
],
"files": [
"lib"
],
"author": "Artem Zakharchenko",
"license": "MIT",
"devDependencies": {
"@ossjs/release": "^0.5.1",
"@playwright/test": "^1.32.3",
"@types/node": "^18.15.11",
"playwright": "^1.32.3",
Expand Down
Loading

0 comments on commit 1f4f0ac

Please sign in to comment.