Skip to content

Commit

Permalink
Fixes on workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pagoru committed Oct 11, 2022
1 parent 65e1975 commit f78ac1c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Package to npmjs
name: Publish
on:
push:
tags:
Expand All @@ -10,14 +10,22 @@ jobs:
- uses: actions/checkout@v3
- name: Install modules
run: yarn
- name: Run tests
run: yarn run test
- name: Read & Modify of package.json
uses: jaywcjlove/[email protected]
with:
data: |
{
"version": "${{ github.ref_name }}"
}
- name: Build
run: yarn run build
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: Publish
run: npm publish
env:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build
on: push
name: Tests
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "darker-engine",
"description": "ecs lightweight library",
"version": "4.0.1",
"version": "0.0.0",
"author": "darkaqua",
"license": "MIT",
"main": "./build/index.js",
Expand Down

0 comments on commit f78ac1c

Please sign in to comment.