Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 10.16.0
- run: yarn install
- run: yarn test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 10.16.0
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Node.js CI

on:
push:
pull_request:
branches: master

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 10.16.0
- run: yarn install
- run: yarn test
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodejs 10.24.1
python 2.7.18
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "1.31.2",
"description": "",
"main": "index.js",
"files": [
"lib/**/*"
],
"scripts": {
"test": "standard",
"2npm": "publish"
Expand All @@ -21,7 +24,7 @@
"license": "MIT",
"dependencies": {
"axios": "^0.19.0",
"body-parser": "^1.19.0",
"body-parser": "^1.15.2",
"lodash": "^4.17.21",
"ramda": "^0.27.1",
"screepsmod-admin-utils-ui": "^0.4.0",
Expand Down
Loading