From 08fd6961740dd8c18486af2e2594a97ebea04b68 Mon Sep 17 00:00:00 2001 From: Michael Amaral Date: Sun, 1 Mar 2020 16:40:26 -0300 Subject: [PATCH] added prepublish --- .github/workflows/publish.yml | 21 +-------------------- package.json | 1 + 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6db6732..487c331 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,26 +4,7 @@ on: release: types: [published] -jobs: - publish_github: - runs-on: ubuntu-latest - name: Publish to Github Packages - steps: - - uses: actions/checkout@master - - uses: borales/actions-yarn@v2.1.0 - with: - auth-token: ${{ secrets.GPR_ACCESS_TOKEN }} - registry-url: 'https://npm.pkg.github.com' - scope: platfombuilders - cmd: version - - name: Create .npmrc - run: | - echo "@platformbuilders:registry=https://npm.pkg.github.com - //npm.pkg.github.com/:_authToken=${{ secrets.GPR_ACCESS_TOKEN }}" > ~/.npmrc - - name: Publish - run: npm publish - - publish_npm: + publish: runs-on: ubuntu-latest name: Publish to npm diff --git a/package.json b/package.json index 402bed7..d173408 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "lint": "eslint '*/**/*.{js,ts,tsx}' --fix", "pretty": "prettier --config ./.prettierrc.js --write \"src/**/*.js\"", "clean": "rm -rf ./node_modules && yarn install", + "prepublish": "tsc", "precommit": "yarn lint", "postversion": "git push && git push --tags", "version:patch": "npm version patch",