fix: Revert "fix: make image plugin aware of the token stream" #383
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
on: | |
push: | |
branches: [master] | |
name: release | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
shell: bash | |
- uses: codex-team/action-nodejs-package-info@v1 | |
id: package | |
- uses: GoogleCloudPlatform/release-please-action@v3 | |
id: release | |
with: | |
token: ${{secrets.YC_UI_BOT_GITHUB_TOKEN}} | |
release-type: node | |
package-name: ${{steps.package.outputs.name}} | |
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"perf","section":"Performance Improvements","hidden":false},{"type":"deps","section":"Dependency update","hidden":false}]' | |
bump-minor-pre-major: true | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.ROBOT_DATAUI_NPM_TOKEN}} | |
if: ${{ steps.release.outputs.release_created }} | |
shell: bash | |
- run: npm run artifact:pages | |
if: ${{ steps.release.outputs.release_created }} | |
- name: Upload static files as artifact | |
if: ${{ steps.release.outputs.release_created }} | |
id: artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: pages-build/ | |
- name: Deploy to GitHub Pages | |
if: ${{ steps.release.outputs.release_created }} | |
id: deployment | |
uses: actions/deploy-pages@v4 |