Skip to content

Merge pull request #64 from croz-ltd/changeset-release/master #22

Merge pull request #64 from croz-ltd/changeset-release/master

Merge pull request #64 from croz-ltd/changeset-release/master #22

Workflow file for this run

name: Release
on:
push:
branches:
- master
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
strategy:
matrix:
os: [ ubuntu-latest ]
node: [ lts/* ]
registry-url: [ 'https://registry.npmjs.org' ]
registry-scope: [ '@croz' ]
runs-on: ${{ matrix.os }}
name: Release - ${{ matrix.os }} - Node ${{ matrix.node }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
registry-url: ${{ matrix.registry-url }}
scope: ${{ matrix.registry-scope }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Create Release Pull Request or Publish to NPM registry
id: changesets
uses: changesets/action@v1
with:
publish: yarn release
version: yarn version-packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}