release v3.0.0-alpha.10 #9
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
# This workflow will install Deno then run Deno lint and test. | |
# For more information see: https://github.com/denoland/setup-deno | |
name: Release to NPM | |
on: | |
push: | |
tags: | |
- "effection-v*" | |
permissions: | |
contents: read | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Get Version | |
id: vars | |
run: echo ::set-output name=version::$(echo ${{github.ref_name}} | sed 's/^effection-v//') | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14.x | |
registry-url: https://registry.npmjs.com | |
- name: Build | |
run: deno task build:npm $NPM_VERSION | |
env: | |
NPM_VERSION: ${{steps.vars.outputs.version}} | |
- name: Publish | |
run: npm publish --access=public | |
working-directory: ./build/npm | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} |