Skip to content

Commit

Permalink
fix(security): ensure entry exists for backport (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored Apr 7, 2021
1 parent a9ac604 commit b22c0df
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 34 deletions.
36 changes: 3 additions & 33 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,14 @@
on:
push:
branches:
- master
- 4.x.x
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: bcoe/release-please-action@v2.5.5
- uses: bcoe/release-please-action@v2
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: y18n
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
- run: npm run compile
- name: push Deno release
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/yargs/y18n.git"
git checkout -b deno
git add -f build
git commit -a -m 'chore: ${{ steps.release.outputs.tag_name }} release'
git push origin +deno
git tag -a ${{ steps.release.outputs.tag_name }}-deno -m 'chore: ${{ steps.release.outputs.tag_name }} release'
git push origin ${{ steps.release.outputs.tag_name }}-deno
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: 'https://external-dot-oss-automation.appspot.com/'
if: ${{ steps.release.outputs.release_created }}
- run: npm install
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
command: manifest
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "4.0.1",
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "y18n",
"version": "5.0.4",
"version": "4.0.1",
"description": "the bare-bones internationalization library used by yargs",
"exports": {
".": [
Expand Down
8 changes: 8 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bootstrap-sha": "a9ac604abf756dec9687be3843e2c93bfe581f25",
"packages": {
".": {
"release-type": "node"
}
}
}

0 comments on commit b22c0df

Please sign in to comment.