Skip to content

Commit b22c0df

Browse files
authored
fix(security): ensure entry exists for backport (#120)
1 parent a9ac604 commit b22c0df

File tree

4 files changed

+15
-34
lines changed

4 files changed

+15
-34
lines changed

.github/workflows/release-please.yml

+3-33
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,14 @@
11
on:
22
push:
33
branches:
4-
- master
4+
- 4.x.x
55
name: release-please
66
jobs:
77
release-please:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: bcoe/release-please-action@v2.5.5
10+
- uses: bcoe/release-please-action@v2
1111
id: release
1212
with:
1313
token: ${{ secrets.GITHUB_TOKEN }}
14-
release-type: node
15-
package-name: y18n
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v1
18-
with:
19-
node-version: 14
20-
- run: npm install
21-
- run: npm run compile
22-
- name: push Deno release
23-
run: |
24-
git config user.name github-actions[bot]
25-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
26-
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/yargs/y18n.git"
27-
git checkout -b deno
28-
git add -f build
29-
git commit -a -m 'chore: ${{ steps.release.outputs.tag_name }} release'
30-
git push origin +deno
31-
git tag -a ${{ steps.release.outputs.tag_name }}-deno -m 'chore: ${{ steps.release.outputs.tag_name }} release'
32-
git push origin ${{ steps.release.outputs.tag_name }}-deno
33-
if: ${{ steps.release.outputs.release_created }}
34-
- uses: actions/setup-node@v1
35-
with:
36-
node-version: 14
37-
registry-url: 'https://external-dot-oss-automation.appspot.com/'
38-
if: ${{ steps.release.outputs.release_created }}
39-
- run: npm install
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 }}
14+
command: manifest

.release-please-manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "4.0.1",
3+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "y18n",
3-
"version": "5.0.4",
3+
"version": "4.0.1",
44
"description": "the bare-bones internationalization library used by yargs",
55
"exports": {
66
".": [

release-please-config.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"bootstrap-sha": "a9ac604abf756dec9687be3843e2c93bfe581f25",
3+
"packages": {
4+
".": {
5+
"release-type": "node"
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)