[GitHub Dependents Info] Updated markdown file(s) (#46) #41
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
--- | |
####################################### | |
# Start the job on all push to master # | |
####################################### | |
name: "Deploy beta" | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- ".github/workflows/**" | |
- "lib/**" | |
- "README.md" | |
- "CHANGELOG.mg" | |
permissions: read-all | |
############### | |
# Set the Job # | |
############### | |
jobs: | |
build: | |
# Name the Job | |
name: Deploy beta on NPM | |
# Set the agent to run on | |
runs-on: ubuntu-latest | |
# Only run this on the main repo | |
if: "!contains(github.event.head_commit.message, 'skip deploy')" | |
################## | |
# Load all steps # | |
################## | |
steps: | |
########################## | |
# Checkout the code base # | |
########################## | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
############################################################## | |
# Publish updated version of markdown-table-formatter on NPM # | |
############################################################## | |
- uses: actions/[email protected] | |
with: | |
node-version: "18.x" | |
registry-url: "https://registry.npmjs.org" | |
- run: npm install | |
- run: npm run test:coverage | |
- run: git config --global user.email "[email protected]" | |
- run: git config --global user.name "Nicolas.Vuillamy" | |
- run: git status && git stash | |
- run: npm version prerelease --preid="$(date '+%Y%m%d%H%M')" | |
- run: npm publish --tag beta | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |