name: Npm Package on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@master with: fetch-depth: 0 - uses: actions/setup-node@v1 with: node-version: 14 registry-url: https://registry.npmjs.org/ # caching - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - uses: actions/cache@v2 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - uses: actions/cache@v2 with: path: ~/.npm key: ${{ runner.os }}-npm- restore-keys: | ${{ runner.os }}-npm- # scripts - run: yarn - run: yarn build - run: yarn test # - name: Create Release # id: changesets # uses: changesets/action@master # # with: # # publish: yarn release # env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}