Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
rndquu committed May 20, 2024
1 parent 4400e53 commit a03cb7d
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: publish-package
name: Publish Package

on:
workflow_dispatch:
inputs:
newversion:
description: 'Semantic Version Bump Type (major minor patch)'
required: true
push:
branches:
- main

jobs:
release-please:
publish-package:
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
Expand All @@ -20,19 +19,11 @@ jobs:
node-version: "20.10.0"
registry-url: https://registry.npmjs.org/

# - name: Build
# run: |
# yarn install --immutable --immutable-cache --check-cache
# yarn build
# yarn pack

- name: Version and publish to npm
id: npm-bump
uses: bcomnes/npm-bump@v2
with:
git_email: [email protected]
git_username: github-actions
newversion: ${{ github.event.inputs.newversion }}
push_version_commit: true
github_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_ACCESS_TOKEN }}
- name: Build & Publish
run: |
yarn install --immutable --immutable-cache --check-cache
yarn build
yarn pack
yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

0 comments on commit a03cb7d

Please sign in to comment.