Skip to content

πŸ”€ v2.0.0

πŸ”€ v2.0.0 #75

name: 'Publish NPM Package'
on:
push:
tags-ignore: ['*']
pull_request:
permissions:
contents: 'read'
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- name: 'Setup node πŸ›ŽοΈ'
uses: 'dudeofawesome/actions/node-setup@v1'
- name: 'Build πŸ—οΈ'
run: 'npm run build'
lint:
runs-on: 'ubuntu-latest'
steps:
- name: 'Setup node πŸ›ŽοΈ'
uses: 'dudeofawesome/actions/node-setup@v1'
- name: 'Lint πŸ§ͺ'
run: 'npm run lint'
test:
runs-on: 'ubuntu-latest'
steps:
- name: 'Setup node πŸ›ŽοΈ'
uses: 'dudeofawesome/actions/node-setup@v1'
- name: 'Test πŸ§ͺ'
run: 'npm run test'
publish:
runs-on: 'ubuntu-latest'
environment: 'production'
permissions:
id-token: 'write'
packages: 'write'
needs:
- 'build'
- 'lint'
- 'test'
steps:
- name: 'Setup node πŸ›ŽοΈ'
uses: 'dudeofawesome/actions/node-setup@v1'
with:
install-modules: false
- name: 'Publish to NPM πŸš€'
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_AUTH_TOKEN }}'
uses: 'dudeofawesome/actions/npm-publish@v1'