Skip to content

Merge pull request #93 from TransbankDevelopers/chore/fix-publish-job #1

Merge pull request #93 from TransbankDevelopers/chore/fix-publish-job

Merge pull request #93 from TransbankDevelopers/chore/fix-publish-job #1

Workflow file for this run

name: NPM Package Release
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm install
- name: Build (if needed for publication)
run: npm run build
- name: npm publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}