Skip to content

Commit

Permalink
Merge branch 'main' into before-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
sshyam-gupta committed Apr 29, 2023
2 parents 0408ced + 56acdd9 commit e12c09a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hey, @${{ github.actor }} welcome to this repository 🎊. Thank you so much for taking the time to point this out.🙌"
pr-message: "Hey, @${{ github.actor }} welcome to this repository🎊 Thank you for taking your time and effort to make our project better, truly value it :tada: 🙌 ! Keep making such awesome contributions!"
issue-message: "Hey, @${{ github.actor }}. Thank you so much for taking the time to point this out"
pr-message: "Hey, @${{ github.actor }}, Thank you for taking your time and effort to make our project better."
42 changes: 42 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish Release
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
steps:
# Checkout the exact commit tagged on the release.
- name: Checkout repo
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.target_commitish }}

- name: Validate and extract release information
id: release
uses: manovotny/github-releases-for-automated-package-publishing-action@v2.0.1

- uses: pnpm/action-setup@v2
with:
version: 7

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Publish version
if: steps.release.outputs.tag == ''
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}

- name: Publish tagged version
if: steps.release.outputs.tag != ''
run: npm publish --tag ${{ steps.release.outputs.tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}

0 comments on commit e12c09a

Please sign in to comment.