tmp: set release branch to current for testing purposes #2
Workflow file for this run
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: Package and Release | |
on: | |
push: | |
branches: | |
- versioning-0 # TODO: use main | |
permissions: | |
contents: read # for checkout | |
jobs: | |
# TODO: uncomment this | |
#lint-and-test: | |
# uses: ./.github/workflows/lint-and-test.yml | |
release: | |
name: Publish Library | |
runs-on: large-8-core-32gb-22-04 | |
# needs: [lint-and-test] # TODO: uncomment this | |
environment: deploy #!! DO NOT CHANGE THIS LINE !! # | |
permissions: | |
contents: write # to be able to publish a GitHub release | |
issues: write # to be able to comment on released issues | |
pull-requests: write # to be able to comment on released pull requests | |
id-token: write # to enable use of OIDC for npm provenance | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 # download tags, see https://github.com/actions/checkout/issues/100 | |
- run: git config --global --add safe.directory $(realpath .) | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
- name: Semantic Release | |
run: | | |
npm install semantic-release | |
npx semantic-release --dry-run # TODO: remove dry-run | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
#CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} #TODO: add CRATES_TOKEN |