Skip to content

fix: update sdk to 5.3.6 (#544) #109

fix: update sdk to 5.3.6 (#544)

fix: update sdk to 5.3.6 (#544) #109

Workflow file for this run

name: npm
env:
CI: true
on:
push:
branches:
- main
jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- uses: actions/[email protected]
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Configure Git
run: |
git config --global user.name 'Pangolin'
git config --global user.email '[email protected]'
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org/'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: yarn --frozen-lockfile
env:
CI: true
- name: Prod - Increment version & create build # incrementing version automatically creates build internally with new version
run: npm version patch -m "[skip ci] %s"
if: ${{ github.ref == 'refs/heads/main' }}
env:
CI: false
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GIT_ACCESS_TOKEN }}
branch: ${{ github.ref }}
tags: true
# create env file from secrets
- run: echo "${{ secrets.ENV_FILE }}" > .env
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}