diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index c5c64304..48116c24 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -8,20 +8,13 @@ jobs: steps: - uses: actions/checkout@v1 - run: yarn install - # set up git since we will later push to the repo - run: git config --global user.name "GitHub CD bot" - run: git config --global user.email "github-cd-bot@example.com" - # upgrade npm version in package.json to the tag used in the release. - run: npm version --no-git-tag-version ${{ github.event.release.tag_name }} - # build the project - run: yarn build - # publish to NPM -> there is one caveat, continue reading for the fix - run: npm publish env: - # Use a token to publish to NPM. See below for how to set it up NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - # push the version changes to GitHub - run: git push env: - # The secret is passed automatically. Nothing to configure. github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index f32d1165..ede662dd 100644 --- a/package.json +++ b/package.json @@ -13,11 +13,7 @@ "dev": "tsc -w", "format": "prettier --write \"src/**/*.ts\"", "lint": "tslint -p tsconfig.json", - "prepare": "npm run build && npm run bundle", - "prepublishOnly": "npm run lint", - "preversion": "npm run lint", - "version": "npm run format && git add -A src", - "postversion": "git push && git push --tags" + "prepare": "npm run build && npm run bundle" }, "author": "pion", "license": "MIT",