Skip to content

chore(main): release 0.0.11 (#18) #36

chore(main): release 0.0.11 (#18)

chore(main): release 0.0.11 (#18) #36

on:
push:
branches:
- main
name: release-please
permissions: {}
jobs:
release-please:
permissions:
contents: write # to create release commit (google-github-actions/release-please-action)
pull-requests: write # to create release PR (google-github-actions/release-please-action)
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: '@bn3t/ssin-lib'
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20
scope: '@bn3t'
registry-url: 'https://registry.npmjs.org'
- run: npm install npm@latest -g
- run: npm ci && npm run build
if: ${{ steps.release.outputs.release_created }}
- uses: oven-sh/setup-bun@v2
- name: Build & Upload Executable Artifacts
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm run build:native-and-compress
gh release upload ${{ steps.release.outputs.tag_name }} dist-native/ssin-darwin-x64.tar.gz
gh release upload ${{ steps.release.outputs.tag_name }} dist-native/ssin-darwin-arm64.tar.gz
gh release upload ${{ steps.release.outputs.tag_name }} dist-native/ssin-linux-x64.tar.gz
gh release upload ${{ steps.release.outputs.tag_name }} dist-native/ssin-windows-x64.zip
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}