Skip to content

Commit

Permalink
ci: use denoland/publish-folder action for publishing to deno.land/x (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Apr 3, 2023
1 parent 1ace7b6 commit f3dc60f
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,16 @@ jobs:
id: get_tag_version
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}

- name: Build deno.land/x
uses: s0/git-publish-subdir-action@92faf786f11dfa44fc366ac3eb274d193ca1af7e
- name: Publish deno.land/x
uses: denoland/publish-folder@82ce065074e7174baf444332c4b7c40869a4909a
if: contains(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags/')
env:
REPO: self
BRANCH: deno_registry
FOLDER: js
COMMIT_NAME: denobot
COMMIT_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}

- name: Tag deno.land/x
if: contains(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags/')
run: |
git fetch origin deno_registry
git tag deno/${{steps.get_tag_version.outputs.TAG_VERSION}} origin/deno_registry
git push deno/${{steps.get_tag_version.outputs.TAG_VERSION}}
with:
folder: js
branch: deno_registry
tag: deno/${{ steps.get_tag_version.outputs.TAG_VERSION }}
token: ${{ secrets.DENOBOT_PAT }}
git-user-name: denobot
git-user-email: [email protected]

# NPM Distribution
- name: Setup node
Expand Down

0 comments on commit f3dc60f

Please sign in to comment.