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",