From d1e82d69ea6de706af6eb4f2b3d6cafc68d67294 Mon Sep 17 00:00:00 2001 From: Tom Andrews Date: Wed, 7 Oct 2020 17:45:44 +0100 Subject: [PATCH] Just publish it --- .github/workflows/release.yml | 11 +---------- package.json | 3 +-- scripts/publish.sh | 6 ------ 3 files changed, 2 insertions(+), 18 deletions(-) delete mode 100755 scripts/publish.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2db26a..b70b489 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,16 +26,7 @@ jobs: - name: Build the code run: npm run build - - name: Get the latest release - id: latest - uses: pozetroninc/github-action-get-latest-release@master - with: - owner: tgandrews - repo: omanyd - excludes: prerelease, draft - - name: Publish to npm - run: npm run publish -- $VERSION + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - VERSION: ${{ steps.latest.outputs.release }} diff --git a/package.json b/package.json index a0b72c5..0005c7a 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,7 @@ "build": "rm -rf lib && tsc", "test": "./scripts/test.sh", "format": "prettier **/*.ts", - "release": "np --no-publish --branch=main", - "publish": "./scripts/publish.sh" + "release": "np --no-publish --branch=main" }, "repository": "git://github.com/tgandrews/omanyd.git", "keywords": [ diff --git a/scripts/publish.sh b/scripts/publish.sh deleted file mode 100755 index 55367ae..0000000 --- a/scripts/publish.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -set -e - -version=$(echo "$1" | cut -c2-10) - -npm publish --tag $version