bump rollup-plugin-userscript-metablock #51
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 UserScript | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get package version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@master | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install | |
- name: Build script | |
run: yarn build | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "dist/WuolahExtra.user.js" | |
artifactContentType: text/javascript | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: v${{ steps.package-version.outputs.current-version }} | |
skipIfReleaseExists: true |