Skip to content

file renaming, removed some files, changes to types, add variant to inputs #361

file renaming, removed some files, changes to types, add variant to inputs

file renaming, removed some files, changes to types, add variant to inputs #361

Workflow file for this run

name: Publish Package to npmjs
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: "5.x"
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true
configFilePath: GitVersion.yml
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
scope: "egde"
- name: Configure git
run: |
git config user.email "[email protected]"
git config user.name "Egde"
- run: yarn install --frozen-lockfile
- name: yarn test
if: github.event_name != 'pull_request'
run: |
yarn test --watchAll=false
- uses: mattallty/jest-github-action@v1
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test-command: yarn test --watchAll
- run: yarn rollup
- run: yarn publish --access public --new-version ${{ steps.gitversion.outputs.semVer }}
if: github.event_name != 'pull_request'
env:
NODE_AUTH_TOKEN: ${{ secrets.EGDE_GH_NPMJS_AT }}
scope: "@egde"