diff --git a/.github/workflows/snapit.yml b/.github/workflows/snapit.yml new file mode 100644 index 0000000..d52b739 --- /dev/null +++ b/.github/workflows/snapit.yml @@ -0,0 +1,21 @@ +name: Snapit + +on: + issue_comment: + types: + - created + +jobs: + snapit: + name: Snapit + if: ${{ github.event.issue.pull_request && github.event.comment.body == '/snapit' }} + runs-on: ubuntu-latest + steps: + - name: Checkout default branch + uses: actions/checkout@v4 + + - name: Create snapshot version + uses: Shopify/snapit@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file