1.1.4 #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |