Update #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build with Bun and Gulp | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Install Bun | |
run: curl -fsSL https://bun.sh/install | bash | |
- name: Add Bun to PATH | |
run: echo "$HOME/.bun/bin" >> $GITHUB_PATH | |
- name: Install dependencies with Bun | |
run: bun install | |
- name: Install Gulp globally | |
run: npm install --global gulp-cli | |
- name: Run Gulp build | |
run: gulp | |
- name: Set up NPM authentication | |
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | |
- name: Publish package to NPM | |
run: | | |
npm version patch -m "Automated version bump" | |
npm publish --access public |