Skip to content

Commit

Permalink
try with ad-m push action, tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ebenali committed Jan 16, 2024
1 parent 559b3a1 commit beb83fa
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- run: test -f /usr/bin/jq || sudo apt install -y --no-install-recommends jq
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
Expand All @@ -32,15 +33,25 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "21.x"
registry-url: https://npm.pkg.github.com/
scope: "@MoreChickenDelivered"
- run: corepack enable

- run: git config --global user.email "[email protected]" && git config --global user.name "$GITHUB_ACTOR"
- run: yarn version patch
- run: git push --tags https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/MoreChickenDelivered/md-loader.git
- run: git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/MoreChickenDelivered/md-loader.git
- run: echo "NEW_TAG=$(jq .version <package.json)" >> "$GITHUB_ENV"
- run: git tag "v$NEW_TAG"

- uses: ad-m/github-push-action@master
with:
force: true
tags: true

- run: yarn npm publish

0 comments on commit beb83fa

Please sign in to comment.