From 9637cf08da33197a0ab7134a3966420034903ecd Mon Sep 17 00:00:00 2001 From: Nixinova <42429413+Nixinova@users.noreply.github.com> Date: Wed, 7 Jul 2021 16:35:46 +1200 Subject: [PATCH] Release 0.4.2 Fix publishing script --- .github/workflows/npm-publish.yml | 6 +++--- .gitignore | 6 +++++- package-lock.json | 2 +- package.json | 5 +++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 9c5fae4..6948dd7 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,14 +1,14 @@ # Runs tests using Node.js and then publishes a package when a release is created # More information: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages -name: Node.js Package +name: Publish package on: release: types: [created] jobs: - build: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -19,7 +19,7 @@ jobs: - run: npm test publish-npm: - needs: build + needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.gitignore b/.gitignore index 55df57b..3d79e64 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# Dependencies node_modules/ + +# Compiled output dist/ -*-dev.* +src/**/*.js +src/**/*.d.ts diff --git a/package-lock.json b/package-lock.json index 0ebb21e..ec582ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "fenfurnace", - "version": "0.4.1", + "version": "0.4.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9ce725b..ea80126 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fenfurnace", - "version": "0.4.1", + "version": "0.4.2", "description": "A chess engine designed to work entirely from a FEN position.", "keywords": [ "chess", @@ -19,13 +19,14 @@ "**/*.js" ], "scripts": { + "prepublish": "tsc", "test": "tsc && node test", "compile": "tsc && npx webpack --entry ./browser.js -o ./dist" }, "dependencies": {}, "devDependencies": { "typescript": "~4.3.5", - "webpack": "^5.42.0", + "webpack": "^5.43.0", "webpack-cli": "^4.7.2" } }