Skip to content

Merge pull request #8 from lottie/mf/fix-release-3 #18

Merge pull request #8 from lottie/mf/fix-release-3

Merge pull request #8 from lottie/mf/fix-release-3 #18

Workflow file for this run

name: Release
on:
push:
branches: [main]
jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://npm.pkg.github.com"
- name: Install dependencies
run: yarn install
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build
run: yarn build
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//npm.pkg.github.com/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release Pull Request or Publish to GitHub registry
id: changesets
uses: changesets/action@v1
with:
version: yarn changelog:version
publish: yarn changelog:publish
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}