Skip to content

chore: bump version to 1.0.2 #15

chore: bump version to 1.0.2

chore: bump version to 1.0.2 #15

Workflow file for this run

# name: Publish to npm
# on:
# push:
# tags:
# - 'v*.*.*' # e.g. v1.0.0
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repo
# uses: actions/checkout@v4
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '20'
# registry-url: 'https://registry.npmjs.org/'
# - name: Install dependencies
# run: npm install
# - name: Build project
# run: npm run build
# # - name: Run tests
# # run: npm test
# publish:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repo
# uses: actions/checkout@v4
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '20'
# registry-url: 'https://registry.npmjs.org/'
# - name: Install dependencies
# run: npm install
# - name: Build project
# run: npm run build
# - name: Publish to npm
# run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Publish to npm
on:
push:
tags:
- "v*.*.*" # e.g. v1.0.0
permissions:
contents: write # 👈 required for creating releases
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org/"
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
publish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org/"
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}