Skip to content

build(deps): update dependencies #2197

build(deps): update dependencies

build(deps): update dependencies #2197

Workflow file for this run

name: Deploy
on:
push:
branches: ['develop', 'master']
pull_request:
jobs:
cancel-previous:
name: 'Cancel Previous Runs'
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
deploy:
runs-on: ubuntu-latest
needs: cancel-previous
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.SECRET_NAME }}
- uses: actions/setup-node@v2-beta
with:
node-version: '18'
registry-url: https://registry.npmjs.org/
- name: Configure Git
run: |
git config --global user.email ${{ secrets.GH_EMAIL }}
git config --global user.name ${{ secrets.GH_USER }}
git remote set-url origin "https://${{ github.token }}@github.com/energywebfoundation/iam-client-lib.git" > /dev/null 2>&1
git reset --hard
git fetch -u origin master:master
- name: Set npm credentials
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> $HOME/.npmrc
- name: Install package
run: npm ci
- name: Build package
run: npm run build
- name: Npm Run Test
run: npm run test
- name: Deploy on develop branch
if: github.ref == 'refs/heads/develop'
env:
GITHUB_TOKEN: ${{ secrets.SECRET_NAME }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Deploy on master branch
if: github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.SECRET_NAME }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Merge master into develop
if: github.ref == 'refs/heads/master'
run: |
git checkout develop
sudo chown $(id -u) .git/logs/refs/heads/develop
git fetch
git merge origin/master
git push origin develop