Skip to content

Commit

Permalink
release: test
Browse files Browse the repository at this point in the history
  • Loading branch information
warm-coolguy committed Feb 2, 2024
1 parent 4148e5a commit ce97af5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
git push origin $TAG
echo "Released and tagged $TAG"
done
- run: node ./scripts/createRelease ${{ env.TAGS }}
- run: node ./scripts/createRelease ${{ secrets.GITHUB_TOKEN }} ${{ env.TAGS }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"test:coverage": "jest --coverage"
},
"dependencies": {
"@actions/github": "5.1.1"
"@actions/github": "^5.1.1"
},
"devDependencies": {
"@babel/core": "^7.21.3",
Expand Down
2 changes: 2 additions & 0 deletions packages/lib/getCluster/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# CHANGELOG

## 1.1.0-mock.0

## 1.0.0

Initial release.
7 changes: 3 additions & 4 deletions scripts/createRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
// const fs = require('fs')
const { getOctokit, context } = require('@actions/github')

const github = getOctokit({
auth: process.env.GITHUB_TOKEN,
})
const [token, ...tags] = process.argv.slice(2)
const github = getOctokit({ auth: token })
const { owner, repo } = context.repo

for (const tag of process.argv.slice(2)) {
for (const tag of tags) {
console.warn(tag)
github.request(`POST /repos/${owner}/${repo}/releases`, {
owner,
Expand Down

0 comments on commit ce97af5

Please sign in to comment.