Skip to content

1.1.4

1.1.4 #7

Workflow file for this run

name: Publish to NPM
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository πŸ›’
uses: actions/checkout@v3
- name: Set node version πŸ€–
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- name: Set up Node.js ${{ steps.nvm.outputs.NODE_VERSION }} πŸ€–
uses: actions/setup-node@v3
with:
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies πŸŒ€
run: npm install
- name: Build πŸ‘·πŸΌβ€β™‚οΈ
run: npm run build
- name: Set details πŸ‘¨πŸ»β€πŸ’»
run: git config --global user.email "[email protected]" && git config --global user.name "Ben Meyrick"
- name: Publish package on NPM πŸ“¦
run: cd dist/packages/ng-lazy-translate && npm version ${{github.ref_name}} --allow-same-version --allow-empty --no-git-tag-version && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}