Skip to content

Merging the develop branch into the main branch, v5.5.1 #37

Merging the develop branch into the main branch, v5.5.1

Merging the develop branch into the main branch, v5.5.1 #37

Workflow file for this run

name: Build and publish library
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Read node from package.json
id: package-version
uses: martinbeentjes/npm-get-version-action@main
- name: Show node version number
run: echo "Version is ${{ steps.package-version.outputs.current-version }}"
- name: Installing dependecies
uses: borales/actions-yarn@v3.0.0
with:
cmd: install
- name: Checking compilation
uses: borales/actions-yarn@v3.0.0
with:
cmd: check
- name: Build and publish library
uses: borales/actions-yarn@v3.0.0
with:
cmd: build
- run: npm publish
- name: Create tag
uses: rickstaa/action-create-tag@v1
with:
tag: ${{ steps.package-version.outputs.current-version }}
message: ""