Fix typo in README.md for goBackToStart type (#15) #19
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: Push to master | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 16 | |
| - name: Cache dependencies | |
| id: cache-deps | |
| uses: actions/cache@v3 | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile --ignore-scripts | |
| - name: Build | |
| run: yarn build | |
| - name: Linting | |
| run: yarn lint | |
| - name: Testing | |
| run: yarn test | |
| - name: Set up package registry auth token | |
| run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} | |
| - name: Publish to NPM | |
| run: yarn publish --access public | |
| - name: Extract version from package.json | |
| id: extract_version | |
| uses: Saionaro/extract-package-version@v1.1.1 | |
| - name: Create release on github | |
| uses: marvinpinto/action-automatic-releases@v1.2.1 | |
| with: | |
| repo_token: ${{ secrets.GH_TOKEN }} | |
| prerelease: false | |
| title: v${{ steps.extract_version.outputs.version }} | |
| automatic_release_tag: v${{ steps.extract_version.outputs.version }} |