@beauraines/bacon-ipsum-cli 0.2.15 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/release-please.yml +60 -0
- package/CHANGELOG.md +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
on:
|
|
2
|
+
push:
|
|
3
|
+
branches:
|
|
4
|
+
- main
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
contents: write
|
|
8
|
+
pull-requests: write
|
|
9
|
+
|
|
10
|
+
name: release-please
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
release-please:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: googleapis/release-please-action@v4
|
|
17
|
+
with:
|
|
18
|
+
# this assumes that you have created a personal access token
|
|
19
|
+
# (PAT) and configured it as a GitHub action secret named
|
|
20
|
+
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
|
|
21
|
+
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
|
|
22
|
+
# this is a built-in strategy in release-please, see "Action Inputs"
|
|
23
|
+
# for more options
|
|
24
|
+
release-type: node
|
|
25
|
+
permissions:
|
|
26
|
+
contents: write
|
|
27
|
+
pull-requests: write
|
|
28
|
+
|
|
29
|
+
# The logic below handles the npm publication:
|
|
30
|
+
- uses: actions/checkout@v4
|
|
31
|
+
# these if statements ensure that a publication only occurs when
|
|
32
|
+
# a new release is created:
|
|
33
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
34
|
+
- uses: actions/setup-node@v4
|
|
35
|
+
with:
|
|
36
|
+
node-version: 12
|
|
37
|
+
registry-url: 'https://registry.npmjs.org'
|
|
38
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
39
|
+
- run: npm ci
|
|
40
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
41
|
+
- run: npm publish
|
|
42
|
+
env:
|
|
43
|
+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
44
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
45
|
+
|
|
46
|
+
- uses: actions/checkout@v4
|
|
47
|
+
- name: tag major and minor versions
|
|
48
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
49
|
+
run: |
|
|
50
|
+
git config user.name github-actions[bot]
|
|
51
|
+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
|
52
|
+
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git"
|
|
53
|
+
git tag -d v${{ steps.release.outputs.major }} || true
|
|
54
|
+
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
|
|
55
|
+
git push origin :v${{ steps.release.outputs.major }} || true
|
|
56
|
+
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
|
|
57
|
+
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
|
|
58
|
+
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
|
|
59
|
+
git push origin v${{ steps.release.outputs.major }}
|
|
60
|
+
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [0.2.16](https://github.com/beauraines/bacon-ipsum-cli/compare/v0.2.15...v0.2.16) (2024-06-24)
|
|
6
|
+
|
|
5
7
|
## [0.2.15](https://github.com/beauraines/bacon-ipsum-cli/compare/v0.2.14...v0.2.15) (2024-06-24)
|
|
6
8
|
|
|
7
9
|
|