Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Merge pull request #36 from Rezonate-io/fix-relation-auth #42

Merge pull request #36 from Rezonate-io/fix-relation-auth

Merge pull request #36 from Rezonate-io/fix-relation-auth #42

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache node modules
id: cache
uses: actions/cache@v2
with:
path: |
**/node_modules
key: ${{ env.DEPENDENCIES_CACHE }}-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm i
- name: GIT config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- uses: nrwl/nx-set-shas@v4
- name: npm run version
run: npm run version
- name: npm run build
run: npm run build
- name: npm run publish
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
npm run publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}