name: Publish on: push: branches: - stable jobs: release: runs-on: ubuntu-latest needs: build steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: '15.x' registry-url: 'https://npm.pkg.github.com' scope: '@simplestream' - uses: actions/cache@v2 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} - run: yarn --no-progress - run: yarn build - run: yarn release env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}