Skip to content

Commit

Permalink
Concise release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Sep 19, 2024
1 parent e1ede40 commit a9213f9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 54 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/NPM-Publish.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish to npm

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Publish to npm
run: npm run package:latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Website Setup
working-directory: website
run: npm install && npm install typia@latest && npm run build
- name: Website Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ./website/out
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typia",
"version": "6.10.1-dev.20240920",
"version": "6.10.1",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down

0 comments on commit a9213f9

Please sign in to comment.