Skip to content

Bump version to 1.2.26 #33

Bump version to 1.2.26

Bump version to 1.2.26 #33

Workflow file for this run

name: Publish to NPM
on:
push:
branches: [ master ]
release:
types: [ published ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'
- name: Install dependencies
run: npm ci
- name: Run tests (fixed)
run: npm test -- --passWithNoTests
- name: Build package
run: npm run build
- name: Configure Git
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
- name: Bump version and publish
run: |
npm version patch -m "Bump version to %s"
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Push version changes
run: git push origin master --follow-tags