Skip to content

Commit 9dda3f1

Browse files
committed
ci: publish.yml
1 parent f658298 commit 9dda3f1

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish to NPM
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build-and-publish-express-typed:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
- name: Install Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
registry-url: "https://registry.npmjs.org"
17+
node-version: 20
18+
- uses: pnpm/action-setup@v4
19+
name: Install pnpm
20+
with:
21+
run_install: false
22+
- name: Install dependencies
23+
run: pnpm install
24+
- name: Publish to NPM
25+
run: npm publish --tag next
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kaplay",
33
"description": "KAPLAY is a JavaScript & TypeScript game library that helps you make games fast and fun!",
4-
"version": "4000.0.0-alpha.7",
4+
"version": "4000.0.0-alpha.8",
55
"license": "MIT",
66
"homepage": "https://kaplayjs.com/",
77
"repository": {

0 commit comments

Comments
 (0)