12.13.2 #115
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish next package | |
on: | |
release: | |
types: [created] | |
jobs: | |
deploy: | |
if: github.event.release.prerelease | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Remove example code | |
run: rm -rf IapExample | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Build typescript | |
run: yarn lint:ci | |
- name: Verify no files have changed after auto-fix | |
run: git diff -- ":(exclude)IapExample/*" --exit-code HEAD | |
- run: npm publish --tag next | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |