Skip to content

Commit

Permalink
GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-polk committed Jun 29, 2024
1 parent ae22dd6 commit fcfda8c
Show file tree
Hide file tree
Showing 3 changed files with 2,833 additions and 60 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-node@v4
with:
# Keep in sync with volta -> node version in package.json
node-version: 16
node-version: 20

- name: Install dependencies
run: yarn
Expand All @@ -28,8 +28,15 @@ jobs:
- name: Run tests
run: yarn test

- name: Create clean package ready to publish
# strips out the scripts, dependencies, etc.
run: npx clean-publish --without-publish --temp-dir package

# - name: Publish to npm
# run: npm run publish-clean
- name: Switch to package directory
run: cd package

# - name: Publish package
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npx semantic-release
12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
{
"name": "bloom-player",
"// The patch level of this version number is replaced on TeamCity by its build number.": "",
"// A dummy value is needed for the simple-minded replacement to work.": "",
"// The major and minor version numbers shown here are used by the TeamCity build, so they are meaningful.": "",
"// Local builds will always get this exact version number, but that should be okay.": "",
"// There's no need to update the patch value before committing and merging: the TeamCity process ensures a new patch number for each merge.": "",
"version": "2.2.0",
"description": "A library for displaying Bloom books in iframes or WebViews",
"author": "SIL International",
"license": "MIT",
"private": false,
"engines": {
"node": ">=16.13.0"
},
"// sideeffects might need to be ['*.css'] to avoid 'shaking' our CSS, if we ever get tree shaking working": "",
"sideEffects": false,
"repository": {
Expand Down Expand Up @@ -96,6 +87,7 @@
"less-loader": "^4.1.0",
"prettier": "^1.16.4",
"raw-loader": "^3.1.0",
"semantic-release": "^24.0.0",
"shx": "^0.3.2",
"style-loader": "^0.23.1",
"terser-webpack-plugin": "^1.3.0",
Expand Down Expand Up @@ -130,7 +122,7 @@
]
},
"volta": {
"node": "16.14.0",
"node": "20.15.0",
"yarn": "1.22.19"
}
}
Loading

0 comments on commit fcfda8c

Please sign in to comment.