Skip to content

Commit

Permalink
Added build action
Browse files Browse the repository at this point in the history
  • Loading branch information
elumixor committed Apr 26, 2024
1 parent dee1c58 commit 0339b72
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Node.js CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run build

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun test
6 changes: 3 additions & 3 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to np
# - uses: oven-sh/setup-bun@v1m
- uses: oven-sh/setup-bun@v1m
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm i
- run: npm publish
- run: bun install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/elumixor/angular-server.git"
},
"scripts": {
"build": "tsup",
"test": "bun test",
Expand Down

0 comments on commit 0339b72

Please sign in to comment.