Skip to content

Commit

Permalink
fix: fix auto-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol committed Mar 11, 2023
1 parent 578894a commit 686d7af
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,21 @@ jobs:
node-version: 18
registry-url: 'https://registry.npmjs.org'

- name: Get package version
uses: tyankatsu0105/read-package-version-actions@v1
id: package-version

- name: Run Build Scripts
run: |
npm i --legacy-peer-deps
npm run build
npm run release
- name: Publish
run: npm publish opentiny-vue-theme-${{ steps.package-version.outputs.version }}.tgz
run: npm publish opentiny-vue-theme-${{ github.ref_name }}.tgz
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.package-version.outputs.version }}
tag_name: ${{ github.ref_name }}
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 686d7af

Please sign in to comment.