Skip to content

Commit

Permalink
chore(Setup): Adjust githuactions
Browse files Browse the repository at this point in the history
  • Loading branch information
m-arrieta-r committed Aug 3, 2024
1 parent 73078e5 commit 2f02c7a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
name: Publish Package

on:
workflow_dispatch:
push:
branches: [main]

name: Publish Package 🚀

jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: node
- uses: actions/checkout@v4
# these if statements ensure that a publication only occurs when
# a new release is created:
- name: Check if version has been updated
id: check
uses: EndBug/version-check
- uses: actions/setup-node@v4
if: steps.check.outputs.changed == 'true'
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
# registry-url: 'https://npm.pkg.github.com'
scope: '@facturacr'
- run: yarn install --frozen-lockfile
if: steps.check.outputs.changed == 'true'
- run: yarn build
if: steps.check.outputs.changed == 'true'
- run: npm publish
if: steps.check.outputs.changed == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permissions:
contents: write
pull-requests: write

name: release-please
name: Create Release PR please 🙏

jobs:
release-please-pr:
Expand Down

0 comments on commit 2f02c7a

Please sign in to comment.