1.2.0 #35
Workflow file for this run
This file contains hidden or 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: npm-publish | |
| on: | |
| release: | |
| types: [released] | |
| jobs: | |
| npm-publish: | |
| name: npm-publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@master | |
| - name: Set up Node.js | |
| uses: actions/setup-node@master | |
| with: | |
| node-version: '12' | |
| - name: Install example packages | |
| run: cd example; yarn | |
| - name: Install packages | |
| run: yarn | |
| - name: Publish release to npm | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated | |
| NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings | |
| run: yarn publish --non-interactive |