Skip to content

Commit 5283938

Browse files
committed
made code actually build
2 parents 1ce1a2b + c141210 commit 5283938

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

.github/workflows/npm-registry.yaml

-32
This file was deleted.
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish NPM Package
2+
on:
3+
release:
4+
types: [created]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: 14
14+
- run: yarn install
15+
- run: yarn build
16+
17+
publish:
18+
needs: build
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v1
23+
with:
24+
node-version: 16
25+
- run: yarn install
26+
- run: yarn version --no-git-tag-version --new-version "${{ github.event.release.tag_name }}"
27+
- run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
28+
- run: npm publish --access public
29+
env:
30+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "@duxcore/eventra",
3-
"version": "2.0.1-50",
3+
"version": "0.0.0",
4+
"private": false,
45
"description": "A lightweight, but powerful JavaScript event manger that will work in both in the browser and node.js.",
56
"main": "lib/index.js",
67
"repository": "https://github.com/duxcore/eventra.git",
78
"author": "Jackson Roberts <jackson@holopanio.com>",
89
"license": "GPL-3.0",
910
"scripts": {
10-
"build": "zx scripts/build.mjs",
11+
"build": "tsc; zx scripts/build.mjs",
1112
"deploy": "yarn build -wp; yarn publish;"
1213
},
1314
"devDependencies": {

0 commit comments

Comments
 (0)