diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 28915ba..3e47c83 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,17 +2,21 @@ name: publish on: push: - branches: ["main"] + tags: + - "*" jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 with: - node-version: 16 - - uses: JS-DevTools/npm-publish@v1 - with: - token: ${{ secrets.NPM_TOKEN }} - greater-version-only: true + node-version: "18.x" + - name: Install dependencies + run: npm ci + + - run: npm version $(echo "${GITHUB_REF}" | sed 's/refs\/tags\///') --git-tag-version false + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 818cc94..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,85 +0,0 @@ -## [2.0.2](https://github.com/HerrCai0907/assemblyscript-prettier/compare/2.0.1...2.0.2) (2023-03-09) - - - -## [2.0.1](https://github.com/HerrCai0907/assemblyscript-prettier/compare/2.0.0...2.0.1) (2023-03-07) - - -### Bug Fixes - -* comment will cause decoretor dislocation ([#9](https://github.com/HerrCai0907/assemblyscript-prettier/issues/9)) ([a4961e6](https://github.com/HerrCai0907/assemblyscript-prettier/commit/a4961e654680914dd34056488c907afe55a4454b)) - - - -# [2.0.0](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.7...2.0.0) (2023-03-07) - - -### Features - -* refactor as prettier plugin ([#8](https://github.com/HerrCai0907/assemblyscript-prettier/issues/8)) ([2d34e9b](https://github.com/HerrCai0907/assemblyscript-prettier/commit/2d34e9b373cabb8aec00aa7bd0c191614750bef5)) - - - -## [1.0.7](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.6...1.0.7) (2023-02-03) - - -### Bug Fixes - -* add missing npmignore ([e584da4](https://github.com/HerrCai0907/assemblyscript-prettier/commit/e584da42952e267adcb917d8b9fda5cd3e57297d)) - - - -## [1.0.6](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.5...1.0.6) (2022-12-08) - - -### Bug Fixes - -* match assemblyscript v22 enum identifiers to TitleCase ([1b06f6b](https://github.com/HerrCai0907/assemblyscript-prettier/commit/1b06f6b6b4841b2bf1345168d5c29c5cb6aa8d0d)) - - - -## [1.0.5](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.4...1.0.5) (2022-10-25) - - - -## [1.0.4](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.3...1.0.4) (2022-08-10) - - -### Bug Fixes - -* prettierignore path error ([5d945a5](https://github.com/HerrCai0907/assemblyscript-prettier/commit/5d945a591708216ba52ba7ac858779cd16e5f1d8)) -* rename ignore file name to avoid collision ([72c9a3b](https://github.com/HerrCai0907/assemblyscript-prettier/commit/72c9a3bef8e1bcd480c2582b2703ef142d3aea1f)) - - - -## [1.0.3](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.2...1.0.3) (2022-08-05) - - -### Bug Fixes - -* move prettier and assemblyscript from dependencies to peerDependencies ([6aa4c83](https://github.com/HerrCai0907/assemblyscript-prettier/commit/6aa4c8312ccb34f8e538d1900ee5bb3abe47acbc)) - - - -## [1.0.2](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.1...1.0.2) (2022-08-03) - - -### Bug Fixes - -* fix check return code ([bd110cb](https://github.com/HerrCai0907/assemblyscript-prettier/commit/bd110cb551a357b6878446f45c36048e6fad11fd)) - - - -## [1.0.1](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.0...1.0.1) (2022-08-03) - - -### Bug Fixes - -* miss shenbang ([ba5ba4b](https://github.com/HerrCai0907/assemblyscript-prettier/commit/ba5ba4bcc59a56604a8f08d31172b99ca05a3cca)) - - - -# 1.0.0 (2022-08-03) - - - diff --git a/package.json b/package.json index de86d46..a9b1301 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "assemblyscript-prettier", - "version": "2.0.2", + "version": "0.0.0", "description": "prettier for assemblyscript", "main": "src/plugin.js", "type": "module", @@ -9,7 +9,7 @@ "lint:fix": "prettier -w .", "test": "NODE_OPTIONS=--experimental-vm-modules jest", "test:create": "NODE_OPTIONS=--experimental-vm-modules jest --updateSnapshot", - "version": "conventional-changelog -i CHANGELOG.md -s -p angular && git add CHANGELOG.md" + "version": "conventional-changelog -o CHANGELOG.md -p angular -r 0" }, "author": "congcongcai0907@163.com", "license": "MIT",